================
@@ -1276,6 +1276,21 @@ unsigned
ContinuationIndenter::addTokenOnNewLine(LineState &State,
CurrentState.BreakBeforeParameter = false;
CurrentState.AlignedTo = &Current;
}
+ if (!CurrentState.AlignedTo && Current.is(TT_ConditionalExpr)) {
----------------
zeule wrote:
I simply want to avoid repeatedly setting it. If it is set at this point, it
was set by this very code fragment during the previous invocation of
`addTokensOnNewLine()`. I think there is no harm to leave the old value,
because the token stream isn't changing.
https://github.com/llvm/llvm-project/pull/196697
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits