Skip to content

Commit

Permalink
[Clangd] Fix ambiguous use of 'Range'
Browse files Browse the repository at this point in the history
Summary:
The changes in D155173 caused build failures on some configruations due
to the use of `Range` which conflicts with other definitions. Explicitly
use `clangd::Range`.
  • Loading branch information
jhuber6 committed Jul 18, 2023
1 parent 05abcc5 commit e6b98b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang-tools-extra/clangd/ClangdServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ class ClangdServer {

// Ref to the clangd::Diag.
struct DiagRef {
Range Range;
clangd::Range Range;
std::string Message;
bool operator==(const DiagRef &Other) const {
return std::tie(Range, Message) == std::tie(Other.Range, Other.Message);
Expand Down

0 comments on commit e6b98b7

Please sign in to comment.