]> granicus.if.org Git - clang/commit
clang-format: Slightly weaken AlignAfterOpenBracket=AlwaysBreak.
authorDaniel Jasper <djasper@google.com>
Thu, 17 Mar 2016 12:00:22 +0000 (12:00 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 17 Mar 2016 12:00:22 +0000 (12:00 +0000)
commit12441fe65fc988ab6369c35d781ab200e422795b
tree6c9ec6f6056d19b9cf84e4dc7566484424ead4cd
parent909bb897f805a24469c0a1798ea6c1dd9569fe35
clang-format: Slightly weaken AlignAfterOpenBracket=AlwaysBreak.

If a call takes a single argument, using AlwaysBreak can lead to lots
of wasted lines and additional indentation without improving the
readability in a significant way.

Before:
  caaaaaaaaaaaall(
      caaaaaaaaaaaall(
          caaaaaaaaaaaall(
              caaaaaaaaaaaaaaaaaaaaaaall(aaaaaaaaaaaaaaaaaaaaaaa))));

After:
  caaaaaaaaaaaall(caaaaaaaaaaaall(caaaaaaaaaaaall(
      caaaaaaaaaaaaaaaaaaaaaaall(aaaaaaaaaaaaaaaaaaaaaaa))));

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