[clang] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 22 14:04:04 PDT 2025
================
@@ -4348,6 +4348,9 @@ bool Lexer::LexTokenInternal(Token &Result, bool TokAtPhysicalStartOfLine) {
if (Char == '=') {
CurPtr = ConsumeChar(CurPtr, SizeTmp, Result);
Kind = tok::caretequal;
+ } else if (LangOpts.Reflection && Char == '^') {
----------------
erichkeane wrote:
I think I'd rather we ALWAYS do this, that way we can diagnose 'reflection doesnt go here'.
https://github.com/llvm/llvm-project/pull/164692
More information about the cfe-commits
mailing list