[cfe-commits] [PATCH] Implement has(), hasDescendant(), forEach() and forEachDescendant() for QualTypes and TypeLocs.

Manuel Klimek klimek at google.com
Fri Oct 26 09:39:15 PDT 2012


Comment at: include/clang/ASTMatchers/ASTMatchers.h:1348
@@ +1347,3 @@
+inline internal::ArgumentAdaptingMatcher<internal::HasMatcher, QualType>
+has(const internal::Matcher<Type> &ChildMatcher) {
+  return has(qualType(ChildMatcher));
I think we should explain why we have those overloads somewhere in the comments so people trying to maintain this code understand it.


More information about the cfe-commits mailing list