SgStatement::insert_statement_from_basicBlock¶
This function inserts a statement at the position indicated by target. If newstmt is a basicBlock, statements inside newstmt are extracted and then inserted.
Synopsis¶
Declared in <src/frontend/SageIII/Cxx_Grammar.h> (not stored in Git)
void
insert_statement_from_basicBlock(
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. This function has somewhat unusual semantics.
This function is low level support (only used by Qing)
\param target - location in the AST where new statement is to be inserted.
\param newstmt - New statement to be placed into the AST.
\param inFront - if true the new statement is inserted before the target
statement, else the new statement is inserted after the target statement
(default = true).
\return Function returns void.
\deprecated This function is used only in Qing's code and not clearly a part
of the preferred interface.
Parameters¶
| Name | Description |
|---|---|
| target | This class represents the notion of a statement. |
| newstmt | This class represents the notion of a statement. |
Created with MrDocs