[cfe-commits] [Patch] Fix the traverse of function explicit instantiations in RecursiveASTVisitor

Michael Han Michael.Han at autodesk.com
Tue Nov 30 02:12:48 PST 2010


The attached patch fixed a glitch in RecursiveASTVisitor which for the time being has the behavior that for function template instantiation, the visitor would only traverse implicit instantiation while skipping explicit instantiations. I think the correct behavior would be both implicit and explicit instantiations are traversed while traversing function definitions.

PS. For the record, the code that enables RecursiveASTVisitor to optionally visit bodies of instantiations is introduced in revision 112848. Related discussions can be found in this (http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20100830/033977.html) thread.

Cheers
Michael

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101130/875550be/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RecursiveASTVisitor.patch
Type: application/octet-stream
Size: 1092 bytes
Desc: RecursiveASTVisitor.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20101130/875550be/attachment.obj>


More information about the cfe-commits mailing list