Commit 941809b
authored
[clang-format] Align different categories together (llvm#172242)
How the program figured out which lines to move along the aligned lines
changed in 75c85ba. Aligning the lines caused the information to
be out of date for aligning different categories later on. It caused a
regression.
Fixes llvm#171021.
new, with the options `AlignConsecutiveAssignments` and
`AlignConsecutiveDeclarations` enabled
```C++
const char *const MatHtoolCompressorTypes[] = {"sympartialACA", "fullACA",
"SVD"};
const char HtoolCitation[] = "@Article{marchand2020two,\n"
" "
" "
" "
"}\n";
```
old
```C++
const char *const MatHtoolCompressorTypes[] = {"sympartialACA", "fullACA"};
const char HtoolCitation[] = "@Article{marchand2020two,\n"
" "
" "
" "
"}\n";
```1 parent f19c83f commit 941809b
File tree
2 files changed
+9
-0
lines changed- clang
- lib/Format
- unittests/Format
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
| 375 | + | |
375 | 376 | | |
376 | 377 | | |
377 | 378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20879 | 20879 | | |
20880 | 20880 | | |
20881 | 20881 | | |
| 20882 | + | |
| 20883 | + | |
| 20884 | + | |
| 20885 | + | |
| 20886 | + | |
| 20887 | + | |
| 20888 | + | |
| 20889 | + | |
20882 | 20890 | | |
20883 | 20891 | | |
20884 | 20892 | | |
| |||
0 commit comments