]> granicus.if.org Git - clang/commit
Make isDefinition matcher support ObjCMethodDecl
authorDave Lee <davelee.com@gmail.com>
Tue, 14 Nov 2017 14:17:26 +0000 (14:17 +0000)
committerDave Lee <davelee.com@gmail.com>
Tue, 14 Nov 2017 14:17:26 +0000 (14:17 +0000)
commit56cc8f8880db2ebc433eeb6b6a707c101467a186
treeefade56f4228af60712461705a5e35bba06a9b23
parent0863d6bb71eba1d928dd621064b0172f6c10432e
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

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