Commit b873479
authored
[clang-format] Fix mismatched break in BlockIndent (llvm#124998)
Near the ColumnLimit a break could be inserted before a right parens
with BlockIndent without a break after the matching left parens. Avoid
these hanging right parens by disallowing breaks before right parens
unless there was a break after the left parens.
Fixes llvm#1033061 parent b89617d commit b873479
File tree
2 files changed
+11
-0
lines changed- clang
- lib/Format
- unittests/Format
2 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
349 | 349 | | |
350 | 350 | | |
351 | 351 | | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
352 | 359 | | |
353 | 360 | | |
354 | 361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9614 | 9614 | | |
9615 | 9615 | | |
9616 | 9616 | | |
| 9617 | + | |
| 9618 | + | |
| 9619 | + | |
| 9620 | + | |
9617 | 9621 | | |
9618 | 9622 | | |
9619 | 9623 | | |
| |||
0 commit comments