- hasType() should be able to match the types of TypedefAliasDecl in addition to TypedefDecl, so made it work on TypedefNameDecl.
- new typedefNameDecl() matcher, which should be mostly used in place of typedefDecl (most people will want to match any typedef names, and not just those introduces through pre-c++11 typedefs).
- new typeAliasDecl() matcher, to match only the type alias syntax.
Details
Details
- Reviewers
aaron.ballman
Diff Detail
Diff Detail
Event Timeline
Comment Actions
If we're going to add this (which I think is a good idea), perhaps we should also add typeAliasDecl() at the same time?
unittests/ASTMatchers/ASTMatchersTest.cpp | ||
---|---|---|
5417 | Can you add a test that ensures the typedef decl matcher does not match a type alias (and vice versa)? |
Comment Actions
Thanks for the review ! I don't have write access, could you please submit this for me ?
Can you add a test that ensures the typedef decl matcher does not match a type alias (and vice versa)?