Skip to content

SageInterface::insertStatementAfterLastDeclaration

Insert a statement after the last declaration within a scope. The statement will be prepended to the scope if there is no declaration statement found

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
void
insertStatementAfterLastDeclaration(
    SgStatement* stmt,
    SgScopeStatement* scope);

Parameters

Name

Description

stmt

This class represents the notion of a statement.

scope

This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).

Created with MrDocs