This is an archive of the discontinued LLVM Phabricator instance.

Add hasLocalStorage/hasGlobalStorage matchers.
ClosedPublic

Authored by sbenza on Jun 5 2014, 11:00 AM.

Details

Summary

Add hasLocalStorage/hasGlobalStorage matchers for VarDecl nodes.
Update the doc. Also add them to the dynamic registry.

Diff Detail

Event Timeline

sbenza updated this revision to Diff 10144.Jun 5 2014, 11:00 AM
sbenza retitled this revision from to Add hasLocalStorage/hasGlobalStorage matchers..
sbenza updated this object.
sbenza edited the test plan for this revision. (Show Details)
sbenza added a reviewer: klimek.
sbenza added a subscriber: Unknown Object (MLST).
klimek accepted this revision.Jun 5 2014, 11:02 AM
klimek edited edge metadata.

lg

we really need to come up with a good way to auto-generated attribute matchers...

This revision is now accepted and ready to land.Jun 5 2014, 11:02 AM

We need a clang tool that parses all the AST node types and auto generates the matchers =)
In all seriousness, at the very least we should automate the addition of node matchers by using the #include "xxx.inc". We can do this in ASTMatchers.h and in the registry.

sbenza closed this revision.Jun 5 2014, 11:30 AM
sbenza updated this revision to Diff 10145.

Closed by commit rL210278 (authored by @sbenza).