================
@@ -610,6 +599,20 @@ class AnnotatingParser {
if (!consumeToken())
return false;
updateParameterCount(&OpeningParen, Tok);
+ // When we discover a 'new', we set CanBeExpression to 'false' in order
to
----------------
backes wrote:
Reverted the move: `parseParens()` now checks
`Prev.is(TT_TrailingCommaVaOptRParen)` in place for the `CanBeExpression` reset
(tested by `int x = foo(new T __VA_OPT__(, ) a * b);` in `TokenAnnotatorTest`).
I also dropped the `HasMultipleParametersOnALine` hunk and its test, since
`HasUnescapedNewline` is always false inside `#define`.
https://github.com/llvm/llvm-project/pull/240902
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits