Skip to content

SageInterface::insertStatementAfterLastDeclaration

All overloads of SageInterface::insertStatementAfterLastDeclaration

Insert a list of statements 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("default")]]
void
insertStatementAfterLastDeclaration(
    std::vector<SgStatement*> stmt_list,
    SgScopeStatement* scope);

Parameters

Name Description
stmt_list A standard container which offers fixed time access to individual elements in any order.
scope This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).

Created with MrDocs