[PATCH] D19113: [ASTMatchers] Upgrading typedef matching to c++11
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 14 07:18:09 PDT 2016
aaron.ballman added a subscriber: aaron.ballman.
aaron.ballman added a reviewer: aaron.ballman.
aaron.ballman added a comment.
If we're going to add this (which I think is a good idea), perhaps we should also add `typeAliasDecl()` at the same time?
================
Comment at: unittests/ASTMatchers/ASTMatchersTest.cpp:5417
@@ -5406,3 +5416,3 @@
-TEST(TypeDefDeclMatcher, Match) {
+TEST(TypedefDeclMatcher, Match) {
EXPECT_TRUE(matches("typedef int typedefDeclTest;",
----------------
Can you add a test that ensures the typedef decl matcher does not match a type alias (and vice versa)?
http://reviews.llvm.org/D19113
More information about the cfe-commits
mailing list