diff options
author | Daniel Jasper <djasper@google.com> | 2013-03-20 13:53:11 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-03-20 13:53:11 +0000 |
commit | 64f092865c01c72ecb9e380432e241f3af55c249 (patch) | |
tree | c6145282790802eea30afaa6b658737b175aaede /lib/Format/Format.cpp | |
parent | f9955d309d3de328e65563baf2d34571249dccbb (diff) |
Reduce penalty for breaks after "(" for functions with parameters.
Before:
aaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);
After:
aaaaaaaaaaaaaaaaa(
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa);
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format/Format.cpp')
-rw-r--r-- | lib/Format/Format.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Format/Format.cpp b/lib/Format/Format.cpp index 0e4a2b797f..1a7dbe0936 100644 --- a/lib/Format/Format.cpp +++ b/lib/Format/Format.cpp @@ -372,8 +372,8 @@ private: void alignComments(comment_iterator I, comment_iterator E, unsigned Column) { while (I != E) { unsigned Spaces = I->Spaces + Column - I->MinColumn; - storeReplacement(I->Tok, std::string(I->NewLines, '\n') + - std::string(Spaces, ' ')); + storeReplacement( + I->Tok, std::string(I->NewLines, '\n') + std::string(Spaces, ' ')); ++I; } } |