summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-12-28 15:03:02 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-12-28 15:03:02 +0000
commita9e8b8880bbc3a63745f879f830c30383f0b0fa6 (patch)
treec3d1813a0f4ce951e9d9764544d718ee6dd0df17
parent4727c9bcae4722f6b14ff723351b63ca01220c6e (diff)
[clangd] Get rid of unnecessary global variable. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@321525 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--clangd/Protocol.cpp2
-rw-r--r--clangd/Protocol.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/clangd/Protocol.cpp b/clangd/Protocol.cpp
index f6fc9aff..4c7c69cb 100644
--- a/clangd/Protocol.cpp
+++ b/clangd/Protocol.cpp
@@ -266,7 +266,7 @@ bool fromJSON(const json::Expr &Params, WorkspaceEdit &R) {
return O && O.map("changes", R.changes);
}
-const std::string ExecuteCommandParams::CLANGD_APPLY_FIX_COMMAND =
+const llvm::StringLiteral ExecuteCommandParams::CLANGD_APPLY_FIX_COMMAND =
"clangd.applyFix";
bool fromJSON(const json::Expr &Params, ExecuteCommandParams &R) {
diff --git a/clangd/Protocol.h b/clangd/Protocol.h
index 1b91b3c1..3decf6fa 100644
--- a/clangd/Protocol.h
+++ b/clangd/Protocol.h
@@ -380,7 +380,7 @@ json::Expr toJSON(const WorkspaceEdit &WE);
/// one argument type will be parsed and set.
struct ExecuteCommandParams {
// Command to apply fix-its. Uses WorkspaceEdit as argument.
- const static std::string CLANGD_APPLY_FIX_COMMAND;
+ const static llvm::StringLiteral CLANGD_APPLY_FIX_COMMAND;
/// The command identifier, e.g. CLANGD_APPLY_FIX_COMMAND
std::string command;