[cfe-commits] [PATCH] RecursiveASTVisitor: fix type traversal for EnumDecl

Manuel Klimek klimek at google.com
Mon Sep 3 03:14:05 PDT 2012


On Sat, Sep 1, 2012 at 7:41 AM, Philip Craig <philipjcraig at gmail.com> wrote:
> RecursiveASTVisitor was traversing D->getTypeForDecl() for EnumDecl,
> but shouldn't (same as for other TagDecl). It also wasn't traversing
> the C++11 integer type.

Don't we still visit the type as part of the typeloc traversal after your patch?

Perhaps add a negative test for what we don't want to visit any more?

Cheers,
/Manuel

>
> _______________________________________________
> 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