Skip to content

replaceExpressionWithExpression

Replace the expression "from" with another expression "to", wherever it appears in the AST. The expression "from" is not deleted, and may be reused elsewhere in the AST.

Synopsis

Declared in <src/midend/programTransformation/astInlining/replaceExpressionWithStatement.h>

void
replaceExpressionWithExpression(
    SgExpression* from,
    SgExpression* to);

Parameters

Name Description
from This class represents the notion of an expression. Expressions
to This class represents the notion of an expression. Expressions

Created with MrDocs