SgStatement::replace_statement¶
replace_statement overloads
Synopses¶
Declared in <src/frontend/SageIII/Cxx_Grammar.h> (not stored in Git)
This function replaces the target statement with a list of statements.
void
replace_statement(
SgStatement* target,
SgStatementPtrList const& newstmtList); This function replaces the target statement with a single statement.
void
replace_statement(
SgStatement* target,
SgStatement* newstmt); 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. |
| newstmt | - New statement to replace target statement in the AST. |
Created with MrDocs