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)
commitfcfac10c8a74ac086fe017b39a114ccfa19ea4fd
treef21abf5af4741e277b79d768882017755602386a
parentbce3cf8074353ffb801ddeded05baf527fa6c127
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.

llvm-svn: 213055
clang/lib/Format/ContinuationIndenter.cpp
clang/unittests/Format/FormatTest.cpp