This is an archive of the discontinued LLVM Phabricator instance.

Add has definition AST matcher
ClosedPublic

Authored by juliehockett on Nov 29 2017, 9:45 AM.

Details

Reviewers
aaron.ballman
Summary

Adds AST matcher for the definition of a CXXRecordDecl.

Diff Detail

Event Timeline

juliehockett created this revision.Nov 29 2017, 9:45 AM
aaron.ballman accepted this revision.Nov 29 2017, 12:49 PM

Aside from a minor commenting nit, LGTM! Do you need me to commit this on your behalf? (If so, I can take care of the commenting fix.)

include/clang/ASTMatchers/ASTMatchers.h
5856

Might want to mention that this is specific to classes and not other things, like functions.

This revision is now accepted and ready to land.Nov 29 2017, 12:49 PM

That'd be great -- thank you! I did request commit rights, so hopefully I'll be able to do it myself next time.

aaron.ballman closed this revision.Nov 29 2017, 1:22 PM

Commit in r319360