Skip to content

Commit 07e4907

Browse files
committed
[clangd] NFC: FindTarget code cleanup post #163206
1 parent cc6d4d5 commit 07e4907

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang-tools-extra/clangd/FindTarget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,8 +1040,8 @@ class ExplicitReferenceCollector
10401040
if (auto *S = N.get<Stmt>())
10411041
return refInStmt(S, Resolver);
10421042
if (auto *NNSL = N.get<NestedNameSpecifierLoc>()) {
1043-
if (auto TL = NNSL->getAsTypeLoc())
1044-
return refInTypeLoc(NNSL->getAsTypeLoc(), Resolver);
1043+
if (TypeLoc TL = NNSL->getAsTypeLoc())
1044+
return refInTypeLoc(TL, Resolver);
10451045
// (!) 'DeclRelation::Alias' ensures we do not lose namespace aliases.
10461046
NestedNameSpecifierLoc Qualifier = NNSL->getAsNamespaceAndPrefix().Prefix;
10471047
SourceLocation NameLoc = NNSL->getLocalBeginLoc();

0 commit comments

Comments
 (0)