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:
76e0e1a
)
Prevent unused error when assertions are disabled.
author
Tres Popp
<tpopp@google.com>
Fri, 26 Jun 2020 08:12:04 +0000
(10:12 +0200)
committer
Tres Popp
<tpopp@google.com>
Fri, 26 Jun 2020 08:12:04 +0000
(10:12 +0200)
clang-tools-extra/clangd/ConfigYAML.cpp
patch
|
blob
|
history
diff --git
a/clang-tools-extra/clangd/ConfigYAML.cpp
b/clang-tools-extra/clangd/ConfigYAML.cpp
index
ee3331d
..
8575356
100644
(file)
--- a/
clang-tools-extra/clangd/ConfigYAML.cpp
+++ b/
clang-tools-extra/clangd/ConfigYAML.cpp
@@
-80,8
+80,10
@@
private:
// It should emit diagnostics if the value is invalid (e.g. wrong type).
// If Key is seen twice, Parse runs only once and an error is reported.
void handle(llvm::StringLiteral Key, std::function<bool(Node &)> Parse) {
- for (const auto &Entry : Keys)
+ for (const auto &Entry : Keys) {
+ (void) Entry;
assert(Entry.first != Key && "duplicate key handler");
+ }
Keys.emplace_back(Key, std::move(Parse));
}