Skip to content

SageInterface::insertStatementListBeforeFirstNonDeclaration

Insert statements before the first non‐declaration statement in a scope. If the scope has no non‐declaration statements

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
void
insertStatementListBeforeFirstNonDeclaration(
    std::vector<SgStatement*> const& newStmts,
    SgScopeStatement* scope);

Parameters

Name

Description

newStmts

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