fixupTemplateInstantiations
Fixups template specializations generated by ROSE from template instantiations.
Synopsis
Declared in <SageIII/astPostProcessing/fixupTemplateInstantiations.h>
void
fixupTemplateInstantiations(SgNode* node);
Description
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.
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.
Parameters
Name |
Description |
node |
This class represents the base class for all IR nodes within Sage III. |
Created with MrDocs