This is an archive of the discontinued LLVM Phabricator instance.

Make isDefinition matcher support ObjCMethodDecl
ClosedPublic

Authored by kastiglione on Nov 12 2017, 1:30 PM.

Details

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.

Event Timeline

kastiglione created this revision.Nov 12 2017, 1:30 PM
This revision is now accepted and ready to land.Nov 13 2017, 6:59 AM

Update isDefinition comment docs to reflect addition of ObjCMethodDecl

Regenerate AST Matcher docs

This revision was automatically updated to reflect the committed changes.