[Clangd] Fix ambiguous use of 'Range'
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 18 Jul 2023 16:41:24 +0000 (11:41 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 18 Jul 2023 16:41:24 +0000 (11:41 -0500)
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`.

clang-tools-extra/clangd/ClangdServer.h

index 9b77984..88b6d2f 100644 (file)
@@ -353,7 +353,7 @@ public:
 
   // 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);