Skip to content

SgNodeHelper::isForIncExpr

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.

Synopsis

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

bool
isForIncExpr(SgNode* node);

Parameters

Name

Description

node

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

Created with MrDocs