[clang-tools-extra] r344724 - Fix warning about unused variable [NFC]
Mikael Holmen via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 17 23:00:39 PDT 2018
Author: uabelho
Date: Wed Oct 17 23:00:39 2018
New Revision: 344724
URL: http://llvm.org/viewvc/llvm-project?rev=344724&view=rev
Log:
Fix warning about unused variable [NFC]
Modified:
clang-tools-extra/trunk/clangd/CodeComplete.cpp
Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/CodeComplete.cpp?rev=344724&r1=344723&r2=344724&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/CodeComplete.cpp (original)
+++ clang-tools-extra/trunk/clangd/CodeComplete.cpp Wed Oct 17 23:00:39 2018
@@ -562,7 +562,7 @@ getQueryScopes(CodeCompletionContext &CC
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;
More information about the cfe-commits
mailing list