Skip to content

SgStatement::replace_statement

All overloads of SgStatement::replace_statement

This function replaces the target statement with a list of statements.

Synopsis

Declared in <src/frontend/SageIII/Cxx_Grammar.h> (not stored in Git)

void
replace_statement(
    SgStatement* target,
    SgStatementPtrList const& newstmtList);

Description

This function handles the replacement of the specified target statement with a list of statements at the target location.

Return Value

Function returns void.

Parameters

Name Description
target - location of the statement to be replaced.
newstmtList - List of new statements to replace the target statement in the AST.

Created with MrDocs