Function SgNodeHelper::isForIncExpr

Function SgNodeHelper::isForIncExpr#

Function Documentation#

bool SgNodeHelper::isForIncExpr(SgNode *node)#

determines whether a node is the root node of an AST representing the inc-expr in a SgForStatement. This function is helpful to deal with this special case in the ROSE AST where an expression does not have a root node which can be easily determined to be a root node of an expression (i.e. here it can be any binary or unary node in constrast to all other expressions in the ROSE AST which are either a SgExprStatement or have a SgExpressionRoot node.