]> granicus.if.org Git - clang/commit
Removing the penalty for breaking after "=".
authorDaniel Jasper <djasper@google.com>
Wed, 23 Jan 2013 12:27:43 +0000 (12:27 +0000)
committerDaniel Jasper <djasper@google.com>
Wed, 23 Jan 2013 12:27:43 +0000 (12:27 +0000)
commit7006e7ebc0098b7627bd3cc13367ea576c25dcbb
tree8803193ad84cfd24a501508c982b002c95977159
parent4bfc65aab5408f76dfe38e3f4e4375fadeda3bc3
Removing the penalty for breaking after "=".

Having seen more cases, this actually was not a good thing to do in the
first place. We can still improve on what we do now, but breaking after
the "=" is good in many cases.

Before:
aaaaaaaaaaaaa = aa->aaaaaaaaaaaaaaaaaaaa(
                    aaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaa));

After:
aaaaaaaaaaaaa =
    aa->aaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaa));

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