This is an archive of the discontinued LLVM Phabricator instance.

New AST matcher: isConstexpr()
ClosedPublic

Authored by eszasip on May 21 2015, 12:48 PM.

Details

Reviewers
klimek
Summary

Adding a new AST matcher that matches constexpr function declarations.

Diff Detail

Event Timeline

eszasip updated this revision to Diff 26267.May 21 2015, 12:48 PM
eszasip retitled this revision from to New AST matcher: isConstexpr().
eszasip updated this object.
eszasip edited the test plan for this revision. (Show Details)
eszasip added a reviewer: klimek.
eszasip added subscribers: Unknown Object (MLST), alexfh.
klimek added inline comments.May 22 2015, 1:45 AM
include/clang/ASTMatchers/ASTMatchers.h
2712

If we add it, why not add it for VarDecl, too? :)

eszasip updated this revision to Diff 26313.May 22 2015, 2:56 AM

From now on isConstexpr() matches constexpr VarDecls as well.

klimek accepted this revision.May 22 2015, 3:24 AM
klimek edited edge metadata.

LG, thx. Let me know if you need me to submit it.

This revision is now accepted and ready to land.May 22 2015, 3:24 AM
eszasip closed this revision.May 22 2015, 4:47 AM

Committed in r238016.