[all-commits] [llvm/llvm-project] e2cad4: [clangd] Add ObjC method support to prepareCallHie...
sheldonneuberger-sc via All-commits
all-commits at lists.llvm.org
Thu Nov 25 02:25:09 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e2cad4df22a6a411e7f7fcbc9bff0bd789545136
https://github.com/llvm/llvm-project/commit/e2cad4df22a6a411e7f7fcbc9bff0bd789545136
Author: Sheldon Neuberger <sneuberger at snapchat.com>
Date: 2021-11-25 (Thu, 25 Nov 2021)
Changed paths:
M clang-tools-extra/clangd/XRefs.cpp
M clang-tools-extra/clangd/unittests/CallHierarchyTests.cpp
Log Message:
-----------
[clangd] Add ObjC method support to prepareCallHierarchy
This fixes "textDocument/prepareCallHierarchy" in clangd for ObjC methods. Details at https://github.com/clangd/vscode-clangd/issues/247.
clangd uses Decl::isFunctionOrFunctionTemplate to check if the decl given in a prepareCallHierarchy request is eligible for prepareCallHierarchy. We change to use isFunctionOrMethod which includes functions and ObjC methods.
Reviewed By: kadircet
Differential Revision: https://reviews.llvm.org/D114058
More information about the All-commits
mailing list