Skip to content

SgNodeHelper::getParent

returns the parent of a node. Essentially a wrapper function of the ROSE get_parent() function, but throws an exception if no parent exists. For SgProject node no exception is thrown if no parent exists because it is the root node of a ROSE AST.

Synopsis

Declared in <src/midend/abstractLayer/SgNodeHelper.h>

SgNode*
getParent(SgNode* node);

Return Value

This class represents the base class for all IR nodes within Sage III.

Parameters

Name

Description

node

This class represents the base class for all IR nodes within Sage III.

Created with MrDocs