[clang] [Clang] Improve error recovery for indexed template names (PR #222328)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 12 22:30:11 PDT 2026
================
@@ -1266,7 +1300,7 @@ bool Parser::AnnotatePackIndexingTemplateName(CXXScopeSpec &SS,
Tok.setLocation(NameLoc);
Tok.setAnnotationEndLoc(T.getCloseLocation());
PP.AnnotateCachedTokens(Tok);
- return false;
+ return Indexed.isNull();
----------------
shafik wrote:
Do the tests below cover both `true` and `false` case here?
https://github.com/llvm/llvm-project/pull/222328
More information about the cfe-commits
mailing list