[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)
commita282bde69e375985edd4c371b79864f617380ad5
treeb60df64a7a97de295a9b104a5dd91c7da0bdb941
parente90d5c8db069f4a456963b45c90407500eacf77f
[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

llvm-svn: 358904
clang/docs/LibASTMatchersReference.html
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/lib/ASTMatchers/Dynamic/Registry.cpp
clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp