[PATCH] D39948: Make isDefinition matcher support ObjCMethodDecl

Dave Lee via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 12 13:30:47 PST 2017


kastiglione created this revision.
Herald added a subscriber: klimek.

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.


https://reviews.llvm.org/D39948

Files:
  docs/LibASTMatchersReference.html
  include/clang/ASTMatchers/ASTMatchers.h
  unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39948.122605.patch
Type: text/x-patch
Size: 6065 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171112/59d0f3ca/attachment.bin>


More information about the cfe-commits mailing list