diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2017-12-28 15:03:02 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2017-12-28 15:03:02 +0000 |
| commit | b4c5c2dd15371ab1a1d33049a7f3ea7ac4c79da6 (patch) | |
| tree | 8edb43f6d7279cd501a3fd29cb3300216986bc9e | |
| parent | efdb49bc9a9d1ba65a78121ce7312b6d1f15ea5b (diff) | |
| download | bcm5719-llvm-b4c5c2dd15371ab1a1d33049a7f3ea7ac4c79da6.tar.gz bcm5719-llvm-b4c5c2dd15371ab1a1d33049a7f3ea7ac4c79da6.zip | |
[clangd] Get rid of unnecessary global variable. No functionality change.
llvm-svn: 321525
| -rw-r--r-- | clang-tools-extra/clangd/Protocol.cpp | 2 | ||||
| -rw-r--r-- | clang-tools-extra/clangd/Protocol.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clangd/Protocol.cpp b/clang-tools-extra/clangd/Protocol.cpp index f6fc9aff060..4c7c69cbce4 100644 --- a/clang-tools-extra/clangd/Protocol.cpp +++ b/clang-tools-extra/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/clang-tools-extra/clangd/Protocol.h b/clang-tools-extra/clangd/Protocol.h index 1b91b3c18c5..3decf6fa0e0 100644 --- a/clang-tools-extra/clangd/Protocol.h +++ b/clang-tools-extra/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; |

