Skip to content

SgNodeHelper::setCond

sets 'cond' as the root node of the AST representing the condition in statements if, while, dowhile, for, switch.

Synopsis

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

void
setCond(
    SgStatement* stmt,
    SgNode* cond);

Parameters

Name

Description

stmt

This class represents the notion of a statement.

cond

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

Created with MrDocs