[clang-format] AlignConsecutiveAssignments breaks formatting of continued functions #53497
Open
Description
Related to #52772.
Given:
BasedOnStyle: LLVM
AlignConsecutiveAssignments: Consecutive
ColumnLimit: 50 # just for the ease of reproduce
The code:
auto b = f(aaaaaaaaaaaaaaaaaaaaaaaaa,
ccc ? aaaaa : bbbbb,
dddddddddddddddddddddddddd);
is formatted correctly.
However, this one, with alignment on the assignment:
auto aaaaaaaaaaaa = f();
auto b = f(aaaaaaaaaaaaaaaaaaaaaaaaa,
ccc ? aaaaa : bbbbb,
dddddddddddddddddddddddddd);
has its last line being aligned with the opening parenthesis.
Expected formatting (not sure about the indentation of the last two lines though):
auto aaaaaaaaaaaa = f();
auto b = f(aaaaaaaaaaaaaaaaaaaaaaaaa,
ccc ? aaaaa : bbbbb,
dddddddddddddddddddddddddd);
Activity