================
@@ -1208,6 +1208,13 @@ Parser::ParseCastExpression(CastParseKind ParseKind,
bool isAddressOfOperand,
AllowSuffix = false;
Res = ParseUnaryExprOrTypeTraitExpression();
break;
+ case tok::caretcaret: {
+ if (getLangOpts().Reflection) {
----------------
katzdm wrote:
I think you also need the changes to `ParseRHSOfBinaryExpr`: That's where we
"reinsert" two `^`-tokens if blocks are enabled. Otherwise, the lexing of
`caretcaret` becomes a breaking change for blocks.
https://github.com/llvm/llvm-project/pull/164692
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits