Skip to content

SgNodeHelper::replaceExpression

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.

Synopsis

Declared in <src/midend/abstractLayer/SgNodeHelper.h>

void
replaceExpression(
    SgExpression* e1,
    SgExpression* e2,
    bool mode = false);

Parameters

Name

Description

e1

This class represents the notion of an expression. Expressions

e2

This class represents the notion of an expression. Expressions

Created with MrDocs