]> granicus.if.org Git - clang/commit
[ASTMatcher] Extend hasAnyArgument to ObjCMessageExpr
authorGeorge Karpenkov <ekarpenkov@apple.com>
Wed, 7 Mar 2018 02:32:44 +0000 (02:32 +0000)
committerGeorge Karpenkov <ekarpenkov@apple.com>
Wed, 7 Mar 2018 02:32:44 +0000 (02:32 +0000)
commite91c6a13f61ccf1df6e5f9738750c7baaf344156
treefce4e4a3714aad181a87b8346d9205407c299128
parentc67f146e7f8ff99fb53eee189a09c680f06cf73a
[ASTMatcher] Extend hasAnyArgument to ObjCMessageExpr

Currently hasArgument works with both ObjC messages and function calls,
but not hasAnyArgument.
This patch fixes that discrepancy, as it's often more convenient to use
hasAnyArgument.

On a more general note, it would be great to have a common superclass
for objc-call and function call, and a matcher matching that, but that's
probably a job for another commit.

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

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