]> granicus.if.org Git - clang/commit
[ASTMatchers] Introduce Objective-C matchers `isClassMessage`, `isClassMethod`, and...
authorBen Hamilton <benhamilton@google.com>
Mon, 22 Apr 2019 17:54:11 +0000 (17:54 +0000)
committerBen Hamilton <benhamilton@google.com>
Mon, 22 Apr 2019 17:54:11 +0000 (17:54 +0000)
commit6b8fd557a1fb4e5ad6ccec5c3a582ec9c712284b
tree15e60e7da227178674f99f507e674507a269b983
parent3711ba48f7e95cb2596ddcde16d2ad780fbd7877
[ASTMatchers] Introduce Objective-C matchers `isClassMessage`, `isClassMethod`, and `isInstanceMethod`

Summary:
isClassMessage is an equivalent to isInstanceMessage for ObjCMessageExpr, but matches message expressions to classes.

isClassMethod and isInstanceMethod check whether a method declaration (or definition) is for a class method or instance method (respectively).

Contributed by @mywman!

Reviewers: benhamilton, klimek, mwyman

Reviewed By: benhamilton, mwyman

Subscribers: cfe-commits

Tags: #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358904 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LibASTMatchersReference.html
include/clang/ASTMatchers/ASTMatchers.h
lib/ASTMatchers/Dynamic/Registry.cpp
unittests/ASTMatchers/ASTMatchersTraversalTest.cpp