================
@@ -650,8 +650,16 @@ static unsigned AlignTokens(const FormatStyle &Style, F
&&Matches,
MatchedIndices.push_back(I);
}
+ // Pass to the function entire lines, so it can update the state of all
tokens
+ // that move.
EndOfSequence = I;
+ while (EndOfSequence < Changes.size() &&
+ Changes[EndOfSequence].NewlinesBefore == 0) {
+ ++EndOfSequence;
----------------
owenca wrote:
Sorry about that. Yeah, we can move it (in line 510?) out of the loop.
https://github.com/llvm/llvm-project/pull/164458
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits