]> granicus.if.org Git - clang/commit
clang-format: Improve heuristic around avoiding bad line breaks.
authorDaniel Jasper <djasper@google.com>
Tue, 15 Jul 2014 09:00:34 +0000 (09:00 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 15 Jul 2014 09:00:34 +0000 (09:00 +0000)
commit0398cdfb559093639263bfe424e6bfb9d63f9893
tree166fd305913c87cdebe3d511e5da5c2bde28e8e2
parent03f233fc907f6020cd8baa653c81e3201ffdfbac
clang-format: Improve heuristic around avoiding bad line breaks.

Now, this can be properly formatted:
  static_cast<A< //
      B> *>(     //
      );

Before, clang-format could end up, not formatting the code at all.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@213055 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/ContinuationIndenter.cpp
unittests/Format/FormatTest.cpp