Skip to content

SageInterface::prepareStatementInsertionAnchor

Normalize an attached statement into the exact lexical anchor used by a subsequent sibling insertion.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility("default")]]
SgStatement*
prepareStatementInsertionAnchor(SgStatement* targetStmt);

Description

Control-flow and OpenMP bodies that directly own targetStmt are structurally normalized to an explicit basic block before this function returns. Conditions are represented by their enclosing control statement because a condition has no sibling statement list. Scope-sensitive declarations must be built against the returned anchor's scope, not the target's pre-normalization scope.

Return Value

This class represents the notion of a statement.

Parameters

Name Description
targetStmt This class represents the notion of a statement.

Created with MrDocs