[cfe-commits] Visit explicit function instantiations in the RecursiveASTVisitor

Daniel Jasper djasper at google.com
Wed May 9 15:29:13 PDT 2012


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?). However, as this
is an elaborate change, I propose this short-term fix making the
RecursiveASTVisitor visit the corresponding explicit function
instantiations.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120509/2a2ed1d8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: visit_explicit_instatitations
Type: application/octet-stream
Size: 1581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120509/2a2ed1d8/attachment.obj>


More information about the cfe-commits mailing list