Skip to content

SageInterface::insertStatementBeforeFirstNonDeclaration

Insert a statement 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
insertStatementBeforeFirstNonDeclaration(
    SgStatement* newStmt,
    SgScopeStatement* scope,
    bool movePreprocessingInfo = true);

Parameters

Name

Description

newStmt

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