diff options
| author | Daniel Jasper <djasper@google.com> | 2013-05-27 11:50:16 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2013-05-27 11:50:16 +0000 |
| commit | 259a038a97c37109752c70a05e17aa811de3bd8f (patch) | |
| tree | 156e1649d9f1fe258b594b593ff526a78c5617e1 /lib/CodeGen/CGExpr.cpp | |
| parent | 050309fdc6d8416b217f651141d5f391512b1041 (diff) | |
| download | clang-259a038a97c37109752c70a05e17aa811de3bd8f.tar.gz clang-259a038a97c37109752c70a05e17aa811de3bd8f.tar.bz2 clang-259a038a97c37109752c70a05e17aa811de3bd8f.tar.xz | |
Fix hacky way of preventing a certain type of line break.
In general, we like to avoid line breaks like:
...
SomeParameter, OtherParameter).DoSomething(
...
as they tend to make code really hard to read (how would you even indent the
next line?). Previously we have implemented this in a hacky way, which has now
shown to lead to problems. This fixes a few weird looking formattings, such as:
Before:
aaaaa(
aaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa)
.aaaaa(aaaaa),
aaaaaaaaaaaaaaaaaaaaa);
After:
aaaaa(aaaaa(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa).aaaaa(aaaaa),
aaaaaaaaaaaaaaaaaaaaa);
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182731 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
