llvm-project/clang/unittests/ASTMatchers
Dave Lee be39868bfc Make isDefinition matcher support ObjCMethodDecl
Summary:
Allow the `isDefinition()` matcher to apply to `ObjCMethodDecl` nodes, in
addition to those it already supports. For whatever reason, `ObjCMethodDecl`
does not inherit from `FunctionDecl` and so this is specialization is necessary.

Reviewers: aaron.ballman, malcolm.parsons, alexshap

Reviewed By: aaron.ballman

Subscribers: cfe-commits, klimek

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

llvm-svn: 318152
2017-11-14 14:17:26 +00:00
..
Dynamic Use EXPECT_TRUE rather than EXPECT_EQ(true, ...) to clean up the code and silence a null conversion warning. 2017-07-14 02:03:03 +00:00
ASTMatchersInternalTest.cpp Dividied ASTMatcherTests into 4 files 2016-05-17 19:22:57 +00:00
ASTMatchersNarrowingTest.cpp Make isDefinition matcher support ObjCMethodDecl 2017-11-14 14:17:26 +00:00
ASTMatchersNodeTest.cpp Add ObjC exception statement AST matchers 2017-11-11 22:46:15 +00:00
ASTMatchersTest.h Added braces to work around gcc warning in googletest: suggest explicit braces to avoid ambiguous 'else'. NFC. 2017-06-15 21:01:24 +00:00
ASTMatchersTraversalTest.cpp Unify and simplify the behavior of the hasDeclaration matcher. 2017-08-02 13:04:44 +00:00
CMakeLists.txt Dividied ASTMatcherTests into 4 files 2016-05-17 19:22:57 +00:00