summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/CodeComplete.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/CodeComplete.cpp')
-rw-r--r--clang-tools-extra/clangd/CodeComplete.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/CodeComplete.cpp b/clang-tools-extra/clangd/CodeComplete.cpp
index 91a3b04c5fd..a910a59c3bd 100644
--- a/clang-tools-extra/clangd/CodeComplete.cpp
+++ b/clang-tools-extra/clangd/CodeComplete.cpp
@@ -562,7 +562,7 @@ getQueryScopes(CodeCompletionContext &CCContext, const Sema &CCSema,
for (auto *Context : CCContext.getVisitedContexts()) {
if (isa<TranslationUnitDecl>(Context))
Info.AccessibleScopes.push_back(""); // global namespace
- else if (const auto *NS = dyn_cast<NamespaceDecl>(Context))
+ else if (isa<NamespaceDecl>(Context))
Info.AccessibleScopes.push_back(printNamespaceScope(*Context));
}
return Info;
OpenPOWER on IntegriCloud