You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[clang-format] Align comments following continued aligned lines (#164687)
new
```C++
auto aaaaaaaaaaaaaaaaaaaaa = {}; //
auto b = [] { //
return; //
};
auto aaaaaaaaaaaaaaaaaaaaa = {}; //
auto b = [] { //
return aaaaaaaaaaaaaaaaaaaaa; //
};
```
old
```C++
auto aaaaaaaaaaaaaaaaaaaaa = {}; //
auto b = [] { //
return; //
};
auto aaaaaaaaaaaaaaaaaaaaa = {}; //
auto b = [] { //
return aaaaaaaaaaaaaaaaaaaaa; //
};
```
Aligning a line to another line involves keeping track of the tokens'
positions. Previously the shift was incorrectly added to some tokens
that did not move. Then the comments would end up in the wrong places.
0 commit comments