Commit c03e974
committed
[clang-format] Fix ColumnLimit violation while aligning
It did compute the length only on the first line, and thus the following
lines could be (and in the test example were) moved over the column
limit, when the = was aligned.1 parent 4cb73cd commit c03e974
File tree
2 files changed
+9
-1
lines changed- clang
- lib/Format
- unittests/Format
2 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
594 | | - | |
| 594 | + | |
| 595 | + | |
595 | 596 | | |
596 | 597 | | |
597 | 598 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20820 | 20820 | | |
20821 | 20821 | | |
20822 | 20822 | | |
| 20823 | + | |
| 20824 | + | |
| 20825 | + | |
| 20826 | + | |
| 20827 | + | |
| 20828 | + | |
| 20829 | + | |
20823 | 20830 | | |
20824 | 20831 | | |
20825 | 20832 | | |
| |||
0 commit comments