diff options
| author | Daniel Jasper <djasper@google.com> | 2013-02-04 07:30:30 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2013-02-04 07:30:30 +0000 |
| commit | 8159d2f271c9142b46a672ac2c45821911171a7d (patch) | |
| tree | 2898260479664ea4c08e4e1a1d0918a701dfef7f /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 0178673f541685cf5067814dfeee2644078e39a9 (diff) | |
| download | clang-8159d2f271c9142b46a672ac2c45821911171a7d.tar.gz clang-8159d2f271c9142b46a672ac2c45821911171a7d.tar.bz2 clang-8159d2f271c9142b46a672ac2c45821911171a7d.tar.xz | |
Fix an error in formatting of for-loops.
Two minor changes:
* Slight penalty for breaking at "," as opposed to ";".
* Don't apply bin-packing rules to for-loops.
Before:
for (int aaaaaa = aaaaaaaaaa; aaaaaa < bbbbbbbb; ++aaaaaa,
++ccccccccccccccc) {}
After:
for (int aaaaaa = aaaaaaaaaa; aaaaaa < bbbbbbbb;
++aaaaaa, ++ccccccccccccccc) {}
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174308 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
