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.

Attachment: visit_explicit_instatitations
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to