projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90b8bc0
)
Fix an unused variable warning where a variable was only used in an assert.
author
Eric Christopher
<echristo@gmail.com>
Mon, 25 Nov 2019 23:27:30 +0000
(15:27 -0800)
committer
Eric Christopher
<echristo@gmail.com>
Mon, 25 Nov 2019 23:29:33 +0000
(15:29 -0800)
clang-tools-extra/clangd/AST.cpp
patch
|
blob
|
history
diff --git
a/clang-tools-extra/clangd/AST.cpp
b/clang-tools-extra/clangd/AST.cpp
index
cd6a682
..
e4d8089
100644
(file)
--- a/
clang-tools-extra/clangd/AST.cpp
+++ b/
clang-tools-extra/clangd/AST.cpp
@@
-457,8
+457,10
@@
std::string getQualification(ASTContext &Context,
const DeclContext *DestContext,
SourceLocation InsertionPoint, const NamedDecl *ND,
llvm::ArrayRef<std::string> VisibleNamespaces) {
- for (llvm::StringRef NS : VisibleNamespaces)
+ for (llvm::StringRef NS : VisibleNamespaces)
{
assert(NS.endswith("::"));
+ (void)NS;
+ }
return getQualification(
Context, DestContext, ND->getDeclContext(),
[&](NestedNameSpecifier *NNS) {