Skip to content

Commit

Permalink
[clangd] Fix a build error for f4f6c22
Browse files Browse the repository at this point in the history
  • Loading branch information
hokein committed Jul 18, 2023
1 parent 0c05528 commit 21558c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang-tools-extra/clangd/ClangdLSPServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

1 comment on commit 21558c8

@jhuber6
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I address the issue I was having in e6b98b7 and it allowed me to build.

Please sign in to comment.