Function fixupTemplateInstantiations#
Defined in File fixupTemplateInstantiations.h
Function Documentation#
-
void fixupTemplateInstantiations(SgNode *node)#
Fixups template specializations generated by ROSE from template instantiations.
Template instantions generated in either the prelink phase or as part of the initial compilation should be marked as comiler generated since they have no source position.
\implementation We have to output the declaration of the specialization after the template declaration and before it’s first use in the source file. It is an error to transform the specialization in a file where it is not first used (e.g. if the first use appears in a header file then the first use could appear before the declaration). Note also that only those template specializations that are transformed are output by ROSE.