aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/DeclSpec.cpp
diff options
context:
space:
mode:
authorMatheus Izvekov <mizvekov@gmail.com>2025-04-01 17:15:18 -0300
committerGitHub <noreply@github.com>2025-04-01 17:15:18 -0300
commitdc17429ae6961a6783371dcf6749eea657b5446a (patch)
treef8142e7957fd0c7ea1c3385787f424e1bb752503 /clang/lib/Sema/DeclSpec.cpp
parent3c7a0e6c826b8bcfa4ec6154fd4247658ca3a03f (diff)
downloadllvm-dc17429ae6961a6783371dcf6749eea657b5446a.zip
llvm-dc17429ae6961a6783371dcf6749eea657b5446a.tar.gz
llvm-dc17429ae6961a6783371dcf6749eea657b5446a.tar.bz2
[clang] improved preservation of template keyword (#133610)
Diffstat (limited to 'clang/lib/Sema/DeclSpec.cpp')
-rw-r--r--clang/lib/Sema/DeclSpec.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp
index 95e14ca..ee5a862 100644
--- a/clang/lib/Sema/DeclSpec.cpp
+++ b/clang/lib/Sema/DeclSpec.cpp
@@ -48,9 +48,9 @@ void UnqualifiedId::setConstructorTemplateId(TemplateIdAnnotation *TemplateId) {
EndLocation = TemplateId->RAngleLoc;
}
-void CXXScopeSpec::Extend(ASTContext &Context, SourceLocation TemplateKWLoc,
- TypeLoc TL, SourceLocation ColonColonLoc) {
- Builder.Extend(Context, TemplateKWLoc, TL, ColonColonLoc);
+void CXXScopeSpec::Extend(ASTContext &Context, TypeLoc TL,
+ SourceLocation ColonColonLoc) {
+ Builder.Extend(Context, TL, ColonColonLoc);
if (Range.getBegin().isInvalid())
Range.setBegin(TL.getBeginLoc());
Range.setEnd(ColonColonLoc);