[cfe-commits] Visit explicit function instantiations in the RecursiveASTVisitor
Richard Smith
richardsmith at google.com
Wed May 9 16:57:46 PDT 2012
On Wed, May 9, 2012 at 3:29 PM, Daniel Jasper <djasper at google.com> wrote:
> Explicit class instantiations and explicit function instantiations are
> currently handled differently on the AST level in that the former create a
> dedicated AST entry in the TU decl context whereas the latter do not. This
> inconsistency currently leads to the RecursiveASTVisitor not visiting
> explicit function instantiations. The right solution is probably to create
> a dedicated node (e.g. ExplicitInstantiationDecl) and add a node of this
> type for any case of explicit instantiations (thoughts?).
This seems like a good direction to me.
> However, as this is an elaborate change, I propose this short-term fix
> making the RecursiveASTVisitor visit the corresponding explicit function
> instantiations.
I've committed the short-term fix as r156522, thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120509/05bb5a5a/attachment.html>
More information about the cfe-commits
mailing list