Function SgNodeHelper::replaceExpression

Function SgNodeHelper::replaceExpression#

Function Documentation#

void SgNodeHelper::replaceExpression(SgExpression *e1, SgExpression *e2, bool mode = false)#

replaces expression e1 by expression e2. Currently it uses the SageInterface::rewriteExpression function but wraps around some addtional checks that significantly improve performance of the replace operation.