This is an archive of the discontinued LLVM Phabricator instance.

[clangd] Improve XRefs support for ObjCMethodDecl
ClosedPublic

Authored by dgoldman on Jul 19 2022, 9:12 AM.

Details

Summary
  • Correct nameLocation to point to the first selector fragment instead of the - or +
  • getDefinition now searches through the proper impl decls to find the definition of the ObjCMethodDecl if one exists

Diff Detail

Event Timeline

dgoldman created this revision.Jul 19 2022, 9:12 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 19 2022, 9:12 AM
dgoldman requested review of this revision.Jul 19 2022, 9:12 AM
dgoldman updated this revision to Diff 445873.Jul 19 2022, 10:31 AM

Run clang-format

dgoldman updated this revision to Diff 445951.Jul 19 2022, 2:48 PM

Minor grammar update to comment

kadircet accepted this revision.Jul 25 2022, 1:32 PM

thanks, lgtm!

clang-tools-extra/clangd/XRefs.cpp
89

can you have a comment here saying "Look for method definition inside the implementation decl"

This revision is now accepted and ready to land.Jul 25 2022, 1:32 PM
This revision was automatically updated to reflect the committed changes.