[cfe-commits] [PATCH] Matchers for NestedNameSpecifiers
Manuel Klimek
reviews at llvm-reviews.chandlerc.com
Thu Sep 13 04:41:28 PDT 2012
lg
================
Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:1024
@@ +1023,3 @@
+ return Loc.getNestedNameSpecifier();
+ }
+
----------------
Perhaps add // FIXME: implement extract overloads for Types.
================
Comment at: unittests/ASTMatchers/ASTMatchersTest.cpp:2855
@@ +2854,3 @@
+ "struct A { struct B { struct C {}; }; }; A::B::C c;",
+ nestedNameSpecifierLoc(hasPrefix(loc(specifiesType(asString("struct A")))))));
+}
----------------
80 columns.
http://llvm-reviews.chandlerc.com/D39
More information about the cfe-commits
mailing list