[cfe-commits] r134631 - /cfe/trunk/include/clang/AST/RecursiveASTVisitor.h

Argyrios Kyrtzidis kyrtzidis at apple.com
Thu Jul 7 13:55:05 PDT 2011


Thanks, could you also add a comment there saying that parameters are actually visited through TypeLocs ?

-Argiris

On Jul 7, 2011, at 1:14 PM, Sean Hunt wrote:

> Author: coppro
> Date: Thu Jul  7 15:14:21 2011
> New Revision: 134631
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=134631&view=rev
> Log:
> Undo r134587 as the bug was actually a deep and hideous one in the
> client code.
> 
> My bad.
> 
> Modified:
>    cfe/trunk/include/clang/AST/RecursiveASTVisitor.h
> 
> Modified: cfe/trunk/include/clang/AST/RecursiveASTVisitor.h
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/RecursiveASTVisitor.h?rev=134631&r1=134630&r2=134631&view=diff
> ==============================================================================
> --- cfe/trunk/include/clang/AST/RecursiveASTVisitor.h (original)
> +++ cfe/trunk/include/clang/AST/RecursiveASTVisitor.h Thu Jul  7 15:14:21 2011
> @@ -1562,13 +1562,6 @@
>   // including exception specifications.
>   TRY_TO(TraverseTypeLoc(D->getTypeSourceInfo()->getTypeLoc()));
> 
> -  // Parameter declarations
> -  for (FunctionDecl::param_iterator I = D->param_begin(),
> -                                    E = D->param_end();
> -       I != E; ++I) {
> -    TRY_TO(TraverseDecl(*I));
> -  }
> -
>   if (CXXConstructorDecl *Ctor = dyn_cast<CXXConstructorDecl>(D)) {
>     // Constructor initializers.
>     for (CXXConstructorDecl::init_iterator I = Ctor->init_begin(),
> 
> 
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits




More information about the cfe-commits mailing list