This is an archive of the discontinued LLVM Phabricator instance.

[ASTMatcher] Add isStaticStorageClass matcher for varDecl and functionDecl.
ClosedPublic

Authored by hokein on Sep 22 2016, 1:16 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

hokein updated this revision to Diff 72141.Sep 22 2016, 1:16 AM
hokein retitled this revision from to [ASTMatcher] Add isStaticStorageClass matcher for varDecl and functionDecl..
hokein updated this object.
hokein added a reviewer: klimek.
hokein added a subscriber: cfe-commits.
klimek accepted this revision.Sep 23 2016, 2:59 PM
klimek edited edge metadata.

lg

This revision is now accepted and ready to land.Sep 23 2016, 2:59 PM
This revision was automatically updated to reflect the committed changes.
aaron.ballman added inline comments.
cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h
3391

It would be nice if you could clarify how this differs from the storage duration. This is a bit confusing because we already have hasStaticStorageDuration() for variables.

hokein added inline comments.Sep 26 2016, 9:48 AM
cfe/trunk/include/clang/ASTMatchers/ASTMatchers.h
3391

Good point! Will make a follow-up patch to do it.