Commit aa2a818
committed
[clang-format] Align trailing comments for function parameters
before
```C++
void foo(int name, // name
float name, // name
int name) // name
{}
```
after
```C++
void foo(int name, // name
float name, // name
int name) // name
{}
```
Fixes #85123.
As the bug report explained, the procedure for aligning the function
parameters previously failed to update `StartOfTokenColumn`.1 parent 70f7039 commit aa2a818
File tree
2 files changed
+15
-0
lines changed- clang
- lib/Format
- unittests/Format
2 files changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
402 | 409 | | |
403 | 410 | | |
404 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19828 | 19828 | | |
19829 | 19829 | | |
19830 | 19830 | | |
| 19831 | + | |
| 19832 | + | |
| 19833 | + | |
| 19834 | + | |
| 19835 | + | |
| 19836 | + | |
| 19837 | + | |
| 19838 | + | |
19831 | 19839 | | |
19832 | 19840 | | |
19833 | 19841 | | |
| |||
0 commit comments