[clang-tools-extra] r321525 - [clangd] Get rid of unnecessary global variable. No functionality change.
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 28 07:03:02 PST 2017
Author: d0k
Date: Thu Dec 28 07:03:02 2017
New Revision: 321525
URL: http://llvm.org/viewvc/llvm-project?rev=321525&view=rev
Log:
[clangd] Get rid of unnecessary global variable. No functionality change.
Modified:
clang-tools-extra/trunk/clangd/Protocol.cpp
clang-tools-extra/trunk/clangd/Protocol.h
Modified: clang-tools-extra/trunk/clangd/Protocol.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/Protocol.cpp?rev=321525&r1=321524&r2=321525&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/Protocol.cpp (original)
+++ clang-tools-extra/trunk/clangd/Protocol.cpp Thu Dec 28 07:03:02 2017
@@ -266,7 +266,7 @@ bool fromJSON(const json::Expr &Params,
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) {
Modified: clang-tools-extra/trunk/clangd/Protocol.h
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/Protocol.h?rev=321525&r1=321524&r2=321525&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/Protocol.h (original)
+++ clang-tools-extra/trunk/clangd/Protocol.h Thu Dec 28 07:03:02 2017
@@ -380,7 +380,7 @@ json::Expr toJSON(const WorkspaceEdit &W
/// 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;
More information about the cfe-commits
mailing list