Page MenuHomePhabricator

[ASTMatchers] Introduce Objective-C matchers `isClassMessage`, `isClassMethod`, and `isInstanceMethod`
ClosedPublic

Authored by mwyman on Apr 19 2019, 1:57 PM.

Details

Summary

isClassMessage is an equivalent to isInstanceMessage for ObjCMessageExpr, but matches message expressions to classes.

isClassMethod and isInstanceMethod check whether a method declaration (or definition) is for a class method or instance method (respectively).

Diff Detail

Repository
rC Clang

Event Timeline

mwyman created this revision.Apr 19 2019, 1:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2019, 1:57 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Apr 19 2019, 2:11 PM
mwyman accepted this revision.Apr 22 2019, 10:28 AM

Thanks. I don't believe I have commit access, so I'll need someone to commit this to trunk.

This revision was automatically updated to reflect the committed changes.