Class MarkAsCompilerGenerated#
Defined in File markCompilerGenerated.h
Inheritance Relationships#
Base Type#
public SgSimpleProcessing(Class SgSimpleProcessing)
Class Documentation#
-
class MarkAsCompilerGenerated : public SgSimpleProcessing#
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).
Public Functions
-
virtual void visit(SgNode *node)#
Required traversal function.
Public Static Functions
-
static bool templateDeclarationCanBeMarkedAsCompilerGenerated(SgDeclarationStatement *templateDeclaration)#
static function used in both AST fixup and in AST consistancy tests
-
virtual void visit(SgNode *node)#