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

Nick Lewycky nlewycky at google.com
Sat Jul 3 18:58:40 PDT 2010


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/20100703/3a019c03/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: visitor-typeloc.patch
Type: text/x-patch
Size: 13544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100703/3a019c03/attachment.bin>


More information about the cfe-commits mailing list