[PATCH] Add support for Adaptative matchers on the dynamic registry.

Samuel Benzaquen sbenza at google.com
Wed Jul 24 07:05:52 PDT 2013

Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:673
@@ -672,3 +672,3 @@
                       BindKind Bind) {
         (llvm::is_base_of<Decl, T>::value ||
Manuel Klimek wrote:
> This looks like it accepts more types?
The child traversal methods (matchesChildOf/matchesDescendantOf) accept 6 types, which are the ones listed in AdaptativeDefaultToTypes.
The parent traversal methods (matchesAncestorOf) accept only 2 types, Decl and Stmt, which I listed directly in hasParent/hasAncestor.


More information about the cfe-commits mailing list