Function markAsCompilerGenerated

Function markAsCompilerGenerated#

Function Documentation#

void markAsCompilerGenerated(SgNode *node)#

Mark an AST subtree as compiler generated (used for instatiated templates generated by ROSE as specializations).

Template instatiation is handled by ROSE and EDG though the translation of instatiations to be template specializations. When output as specializations they are generated code (not appearing in the original source code). Since EDG recordes the position of the instatiated template as the location of the original template declaration (which could be in a different file) the unparser can skip over the output of such parts of the AST (since we only output the code associated with the original source file as a way of stripping off all the headers files that would otherwise be prepended to the source code).