[all-commits] [llvm/llvm-project] 88a2ac: [clangd] Improve XRefs support for ObjCMethodDecl

David Goldman via All-commits all-commits at lists.llvm.org
Tue Jul 26 09:11:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 88a2ac6ad623cd7519070f6b0bf2de2793bb90dd
      https://github.com/llvm/llvm-project/commit/88a2ac6ad623cd7519070f6b0bf2de2793bb90dd
  Author: David Goldman <davg at google.com>
  Date:   2022-07-26 (Tue, 26 Jul 2022)

  Changed paths:
    M clang-tools-extra/clangd/AST.cpp
    M clang-tools-extra/clangd/AST.h
    M clang-tools-extra/clangd/XRefs.cpp
    M clang-tools-extra/clangd/unittests/XRefsTests.cpp

  Log Message:
  -----------
  [clangd] Improve XRefs support for ObjCMethodDecl

- 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

Differential Revision: https://reviews.llvm.org/D130095




More information about the All-commits mailing list