aboutsummaryrefslogtreecommitdiff
path: root/clang-tools-extra/clangd/support/DirectiveTree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/support/DirectiveTree.cpp')
-rw-r--r--clang-tools-extra/clangd/support/DirectiveTree.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/support/DirectiveTree.cpp b/clang-tools-extra/clangd/support/DirectiveTree.cpp
index 97b0598..16d12f3 100644
--- a/clang-tools-extra/clangd/support/DirectiveTree.cpp
+++ b/clang-tools-extra/clangd/support/DirectiveTree.cpp
@@ -305,8 +305,8 @@ private:
if (&Value >= Tokens.end() || &Value.nextNC() < Tokens.end())
return std::nullopt;
return llvm::StringSwitch<std::optional<bool>>(Value.text())
- .Cases("true", "1", true)
- .Cases("false", "0", false)
+ .Cases({"true", "1"}, true)
+ .Cases({"false", "0"}, false)
.Default(std::nullopt);
}