SgStatement::insert_statement¶
All overloads of SgStatement::insert_statement
This function inserts a single statement at the position indicated by target.
Synopsis¶
Declared in <src/frontend/SageIII/Cxx_Grammar.h> (not stored in Git)
void
insert_statement(
SgStatement* target,
SgStatement* newstmt,
bool inFront = true); Description¶
This function handles the insertion of the specified statement at the target location. The boolean variable specifies if the new statement is inserted before or after the target statement.
Return Value¶
Function returns void.
Parameters¶
| Name | Description |
|---|---|
| target | - location in the AST where new statement is to be inserted. |
| newstmt | - New statement to be placed into the AST. |
| inFront | - if true the new statement is inserted before the target statement, else the new statement is inserted after the target statement (default = true). |
Created with MrDocs