Skip to content

SageInterface::splitVariableDeclaration

Split declarations within a scope into declarations and assignment statements, by default only top level declarations are considered. Return the number of declarations split.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
int
splitVariableDeclaration(
    SgScopeStatement* scope,
    bool topLevelOnly = true);

Parameters

Name

Description

scope

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

Created with MrDocs