[clang] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)
Daniel M. Katz via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 23 10:00:19 PDT 2025
================
@@ -1208,6 +1208,13 @@ Parser::ParseCastExpression(CastParseKind ParseKind, bool isAddressOfOperand,
AllowSuffix = false;
Res = ParseUnaryExprOrTypeTraitExpression();
break;
+ case tok::caretcaret: {
+ if (getLangOpts().Reflection) {
----------------
katzdm wrote:
No need for lookahead afaict - if you're in a binary expression, it can't be a reflect-expression.
https://github.com/llvm/llvm-project/pull/164692
More information about the cfe-commits
mailing list