[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) {
TOOLING_COMPILE_ASSERT(
(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.
http://llvm-reviews.chandlerc.com/D1201
More information about the cfe-commits
mailing list