[clang-tools-extra] [clangd] Update XRefs to support overriden ObjC methods (PR #127109)
kadir çetinkaya via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 17 01:27:02 PST 2025
================
@@ -430,6 +439,22 @@ locateASTReferent(SourceLocation CurLoc, const syntax::Token *TouchedIdentifier,
continue;
}
}
+ // Special case: - (void)^method; should jump to all overrides. Note that an
+ // Objective-C method can override a parent class or protocol.
----------------
kadircet wrote:
i think it's worthwhile to also add a test to check we don't return overridden methods when calling xrefs on usage of the method.
https://github.com/llvm/llvm-project/pull/127109
More information about the cfe-commits
mailing list