[clang-tools-extra] [clangd] Update XRefs to support overriden ObjC methods (PR #127109)

David Goldman via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 14 10:34:21 PST 2025


================
@@ -430,6 +430,18 @@ locateASTReferent(SourceLocation CurLoc, const syntax::Token *TouchedIdentifier,
         continue;
       }
     }
+    // Special case: an Objective-C method can override a parent class or
+    // protocol.
----------------
DavidGoldman wrote:

I was thinking for that users can use go to implementation to find them. 

And that's a good point - didn't think about that, updated.

https://github.com/llvm/llvm-project/pull/127109


More information about the cfe-commits mailing list