[cfe-commits] patch: add TypeLoc traversal to RecursiveASTVisitor

Nick Lewycky nlewycky at google.com
Sun Jul 4 00:22:05 PDT 2010

At Chandler's behest, I've uploaded this to Reitveld:
http://codereview.appspot.com/1700049/show . The latest patchset is very
similar to the one attached to the previous email, mostly 80-col and
comments, but one functional change to make TemplateArgumentLocHelper call
into the TypeLoc traversal.


On 3 July 2010 18:58, Nick Lewycky <nlewycky at google.com> wrote:

> This patch adds basic traversal support for TypeLoc's to the
> RecursiveASTVisitor. The way it works is that the Visit*TypeLoc methods will
> call the matching Visit*Type methods, permitting users to continue using
> their Type-based visitors while permitting overrides of the TypeLoc specific
> methods. Many of the traversals have FIXME comments attached where the
> existing Type traversal does something that isn't captured in the matching
> TypeLoc, we fall back to traversing Types in that case.
> In addition, 'TraverseDeclarationHelper' and
> 'TraverseClassTemplateSpecializationDecl' are modified to actually call into
> the TypeLoc versions instead of the Type versions.
> Please review!
> Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100704/99606f23/attachment.html>

More information about the cfe-commits mailing list