Skip to content

replaceAssignmentStmtWithStatement

Replace an assignment statement with the result of a statement generator. Assumptions: from has assignment expr at top level of statement from is not in the test of a loop or if statement not currently traversing from

Synopsis

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

void
replaceAssignmentStmtWithStatement(
    SgExprStatement* from,
    SageInterface::StatementGenerator* to);

Parameters

Name

Description

from

This class represents the concept of a C or C++ statement which contains a

to

Interface for creating a statement whose computation writes its answer into a given variable.

Created with MrDocs