[all-commits] [llvm/llvm-project] b17baa: [ASTMatchers] Adding a new matcher for callee decl...

Ziqing Luo via All-commits all-commits at lists.llvm.org
Thu Jul 21 13:36:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b17baa1db613a2ce777aa122feb87488750a64d0
      https://github.com/llvm/llvm-project/commit/b17baa1db613a2ce777aa122feb87488750a64d0
  Author: Ziqing Luo <ziqing at udel.edu>
  Date:   2022-07-21 (Thu, 21 Jul 2022)

  Changed paths:
    M clang/docs/LibASTMatchersReference.html
    M clang/include/clang/ASTMatchers/ASTMatchers.h
    M clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
    M clang/unittests/ASTMatchers/Dynamic/RegistryTest.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list