[PATCH] D129398: Adding a new ASTMatcher for callee declarations of Obj-C message expressions

Ziqing Luo via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 8 14:15:43 PDT 2022


ziqingluo-90 created this revision.
ziqingluo-90 added reviewers: NoQ, njames93, aaron.ballman, klimek, t-rasmud, usama54321, LegalizeAdulthood.
ziqingluo-90 added a project: clang.
Herald added a project: All.
ziqingluo-90 requested review of this revision.
Herald added a subscriber: cfe-commits.

For an Obj-C message expression `[o  m]`, the adding matcher will match the declaration of the method `m`.  This matcher is the Obj-C counterpart of the existing `callee` ASTMatcher which matches function/method declarations for C/C++ calls.     So I think this matcher is general enough to be added to the `ASTMatcher.h`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129398

Files:
  clang/docs/LibASTMatchersReference.html
  clang/include/clang/ASTMatchers/ASTMatchers.h
  clang/lib/ASTMatchers/Dynamic/Registry.cpp
  clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129398.443348.patch
Type: text/x-patch
Size: 4880 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220708/5195dabf/attachment.bin>


More information about the cfe-commits mailing list