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

Manuel Klimek klimek at google.com
Wed Jul 24 07:08:58 PDT 2013


  lg


================
Comment at: include/clang/ASTMatchers/ASTMatchersInternal.h:673
@@ -672,3 +672,3 @@
                       BindKind Bind) {
     TOOLING_COMPILE_ASSERT(
         (llvm::is_base_of<Decl, T>::value ||
----------------
Samuel Benzaquen wrote:
> 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.
Ah, I was confused here (I thought we had already implemented more options for ancestor matchers). Sorry for the noise.


http://llvm-reviews.chandlerc.com/D1201

BRANCH
  adaptative

ARCANIST PROJECT
  clang



More information about the cfe-commits mailing list