SageInterface::insertAfterUsingCommaOp
Insert an expression (new_exp ) after another expression (anchor_exp) has possible side effects, without changing the original semantics. This is done by using two comma operators: type T1; ... ((T1 = anchor_exp, new_exp),T1) )... , where T1 is a temp variable saving the possible side effect of anchor_exp. The top level comma op exp is returned. The reference to T1 in T1 = anchor_exp is saved in temp_ref.
Synopsis
Declared in <SageIII/sageInterface/sageInterface.h>
SgCommaOpExp*
insertAfterUsingCommaOp(
SgExpression* new_exp,
SgExpression* anchor_exp,
SgStatement** temp_decl = NULL,
SgVarRefExp** temp_ref = NULL);
Parameters
Name |
Description |
new_exp |
This class represents the notion of an expression. Expressions |
anchor_exp |
This class represents the notion of an expression. Expressions |
temp_decl |
This class represents the notion of a statement. |
temp_ref |
This class represents the variable refernece in expressions. |
Created with MrDocs