Commit 1d9d396
committed
[clang-format] Allow line breaking with PointerAlignment configured
Fixes #139514.
Within a long declaration involving the pointer, the program has allowed
breaking between the type and the star when the configuration specified
that the star should stick to the variable. Now it also allows breaking
between the star and the variable when the configuration specified that
the star should stick to the type.1 parent f607b2a commit 1d9d396
File tree
3 files changed
+38
-3
lines changed- clang
- lib/Format
- unittests/Format
3 files changed
+38
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1566 | 1566 | | |
1567 | 1567 | | |
1568 | 1568 | | |
1569 | | - | |
| 1569 | + | |
| 1570 | + | |
1570 | 1571 | | |
1571 | 1572 | | |
1572 | 1573 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4343 | 4343 | | |
4344 | 4344 | | |
4345 | 4345 | | |
4346 | | - | |
| 4346 | + | |
4347 | 4347 | | |
4348 | 4348 | | |
4349 | 4349 | | |
| |||
6262 | 6262 | | |
6263 | 6263 | | |
6264 | 6264 | | |
| 6265 | + | |
| 6266 | + | |
6265 | 6267 | | |
6266 | | - | |
| 6268 | + | |
6267 | 6269 | | |
6268 | 6270 | | |
6269 | 6271 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8644 | 8644 | | |
8645 | 8645 | | |
8646 | 8646 | | |
| 8647 | + | |
| 8648 | + | |
| 8649 | + | |
| 8650 | + | |
| 8651 | + | |
| 8652 | + | |
| 8653 | + | |
| 8654 | + | |
| 8655 | + | |
| 8656 | + | |
| 8657 | + | |
| 8658 | + | |
| 8659 | + | |
| 8660 | + | |
| 8661 | + | |
| 8662 | + | |
| 8663 | + | |
| 8664 | + | |
| 8665 | + | |
| 8666 | + | |
| 8667 | + | |
| 8668 | + | |
| 8669 | + | |
| 8670 | + | |
| 8671 | + | |
| 8672 | + | |
| 8673 | + | |
| 8674 | + | |
| 8675 | + | |
| 8676 | + | |
| 8677 | + | |
| 8678 | + | |
8647 | 8679 | | |
8648 | 8680 | | |
8649 | 8681 | | |
| |||
0 commit comments