[clang-tools-extra] 21558c8 - [clangd] Fix a build error for f4f6c229bde8f42721482469bd5a3d050d254d82
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 18 10:20:49 PDT 2023
Author: Haojian Wu
Date: 2023-07-18T19:20:06+02:00
New Revision: 21558c83dbe319deaea897895265d771c3111492
URL: https://github.com/llvm/llvm-project/commit/21558c83dbe319deaea897895265d771c3111492
DIFF: https://github.com/llvm/llvm-project/commit/21558c83dbe319deaea897895265d771c3111492.diff
LOG: [clangd] Fix a build error for f4f6c229bde8f42721482469bd5a3d050d254d82
Added:
Modified:
clang-tools-extra/clangd/ClangdLSPServer.h
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/ClangdLSPServer.h b/clang-tools-extra/clangd/ClangdLSPServer.h
index a52e97099635e3..79579c22b788a9 100644
--- a/clang-tools-extra/clangd/ClangdLSPServer.h
+++ b/clang-tools-extra/clangd/ClangdLSPServer.h
@@ -237,10 +237,10 @@ class ClangdLSPServer : private ClangdServer::Callbacks,
// emit them via the LSP's data field (which was newly added in LSP 3.16).
std::mutex DiagRefMutex;
struct DiagKey {
- clangd::Range Range;
+ clangd::Range Rng;
std::string Message;
bool operator<(const DiagKey &Other) const {
- return std::tie(Range, Message) < std::tie(Other.Range, Other.Message);
+ return std::tie(Rng, Message) < std::tie(Other.Rng, Other.Message);
}
};
DiagKey toDiagKey(const clangd::Diagnostic &LSPDiag) {
More information about the cfe-commits
mailing list