[PATCH] D19113: [ASTMatchers] Upgrading typedef matching to c++11

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 14 08:28:52 PDT 2016


aaron.ballman added a comment.

A few minor nits remain.

Please run clang\docs\tools\dump_ast_matchers.py to regenerate the AST matcher documentation with your changes.


================
Comment at: unittests/ASTMatchers/ASTMatchersTest.cpp:5420
@@ -5409,1 +5419,3 @@
                       typedefDecl(hasName("typedefDeclTest"))));
+  EXPECT_FALSE(matches("using typedefDeclTest2 = int;",
+                       typedefDecl(hasName("typedefDeclTest2"))));
----------------
Should be EXPECT_TRUE with notMatches().

================
Comment at: unittests/ASTMatchers/ASTMatchersTest.cpp:5427
@@ +5426,3 @@
+                      typeAliasDecl(hasName("typeAliasTest2"))));
+  EXPECT_FALSE(matches("typedef int typeAliasTest;",
+                       typeAliasDecl(hasName("typeAliasTest"))));
----------------
Should be EXPECT_TRUE with notMatches


http://reviews.llvm.org/D19113





More information about the cfe-commits mailing list