[ASTMatchers] Adding a new matcher for callee declarations of Obj-C
authorZiqing Luo <ziqing@udel.edu>
Thu, 21 Jul 2022 20:20:19 +0000 (13:20 -0700)
committerZiqing Luo <ziqingluo@Ziqings-iMac-Pro.local>
Thu, 21 Jul 2022 20:35:31 +0000 (13:35 -0700)
commitb17baa1db613a2ce777aa122feb87488750a64d0
treefeef68260d507bcd635f380f8f1d5350a205f6ab
parent7c666c14f82ee13ddd222aba9543a5579e608e03
[ASTMatchers] Adding a new matcher for callee declarations of Obj-C
message expressions

For an Obj-C message expression `[o m]`, the adding matcher will match
the declaration of the method `m`.  This commit overloads the existing
`callee` ASTMatcher, which originally was only for C/C++ nodes but
also applies to Obj-C messages now.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D129398
clang/docs/LibASTMatchersReference.html
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
clang/unittests/ASTMatchers/Dynamic/RegistryTest.cpp