[llvm-branch-commits] [clang] [clang-tools-extra] [libcxx] [clang] improved preservation of template keyword (PR #133610)
Younan Zhang via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Mar 31 23:47:45 PDT 2025
================
@@ -587,12 +587,12 @@ bool Parser::ParseOptionalCXXScopeSpecifier(
<< II.getName()
<< FixItHint::CreateInsertion(Tok.getLocation(), "template ");
}
-
- SourceLocation TemplateNameLoc = ConsumeToken();
+ ConsumeToken();
TemplateNameKind TNK = Actions.ActOnTemplateName(
- getCurScope(), SS, TemplateNameLoc, TemplateName, ObjectType,
- EnteringContext, Template, /*AllowInjectedClassName*/ true);
+ getCurScope(), SS, /*TemplateKWLoc=*/SourceLocation(), TemplateName,
----------------
zyn0217 wrote:
We don't want to track the `template` keyword's location following an NNS prefix anymore? Even that is never used, I think we need to mention the change in the release note.
Or am I missing any code that would track the location instead?
https://github.com/llvm/llvm-project/pull/133610
More information about the llvm-branch-commits
mailing list