]> granicus.if.org Git - clang/commit
clang-format: Fix bad wrapping of ObjC method exprs.
authorDaniel Jasper <djasper@google.com>
Wed, 6 May 2015 13:13:03 +0000 (13:13 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 6 May 2015 13:13:03 +0000 (13:13 +0000)
commit0c4ddbdc14b0831aee4601c5cf0d60aa7dfca19a
tree84b32539ade2df4c145c0982286e36335dda65e4
parentbcfe0a32234b16a2d3f0559f71eff6475e79fabe
clang-format: Fix bad wrapping of ObjC method exprs.

Before:
  [aaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaa:
      aaaaaaaa aaa:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa];

After:
  [aaaaaaaaaaaaaaaaaaaaaaaaa
      aaaaaaaaaaaaaaaaa:aaaaaaaa
                    aaa:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa];

Note that this might now violate the column limit and we probably need an
alternative way of indenting these then. However, that is still strictly better
than the messy formatting that clang-format did before.

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