Skip to content

myStatementInsert

Insert a new statement before or after a target statement. If allowForInit is true, the new statement can be inserted into the initializer of a for statement.

Synopsis

Declared in <src/midend/programTransformation/astInlining/replaceExpressionWithStatement.h>

void
myStatementInsert(
    SgStatement* target,
    SgStatement* newstmt,
    bool before,
    bool allowForInit = false);

Parameters

Name Description
target This class represents the notion of a statement.
newstmt This class represents the notion of a statement.

Created with MrDocs