| commit | de5c20792d3e684b3afac824f41076fca96f5813 | [log] [tgz] |
|---|---|---|
| author | Daniel Jasper <djasper@google.com> | Mon Dec 24 00:13:23 2012 +0000 |
| committer | Daniel Jasper <djasper@google.com> | Mon Dec 24 00:13:23 2012 +0000 |
| tree | 03f44e36c2dce22eace12d0a1e58a78fbde34fcd | |
| parent | 32e0aa3a50d345d156402ded50adf783fd54d8c8 [diff] |
Take operator precedence into account when splitting lines.
With this patch, splitting after binary operators has a panelty corresponding
to the operator's precedence. We used to ignore this and eagerly format like:
if (aaaaaaaaaaaaaaaaaaaaaaaaa || bbbbbbbbbbbbbbbbbbbbbbbbb &&
ccccccccccccccccccccccccc) { .. }
With this patch, this becomes:
if (aaaaaaaaaaaaaaaaaaaaaaaaa ||
bbbbbbbbbbbbbbbbbbbbbbbbb && ccccccccccccccccccccccccc) { .. }
llvm-svn: 171007