================
@@ -248,7 +248,7 @@ class AnnotatingParser {
}
if (Prev.isOneOf(tok::question, tok::colon) && !Style.isProto())
SeenTernaryOperator = true;
- updateParameterCount(Left, CurrentToken);
+ FormatToken *Tok = CurrentToken;
----------------
backes wrote:
Found a much cleaner way: `updateParameterCount()` now checks
`Current->Previous->is(TT_TrailingCommaVaOptRParen)` in addition to
`tok::comma`, so `parseAngle()` (and `parseBrace()`) stay in their original
order with zero loop reordering while still counting trailing-comma
`__VA_OPT__`.
https://github.com/llvm/llvm-project/pull/240902
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits