Skip to content

SageBuilder::buildVariableDeclarationWithEmbeddedTag

Build a fresh variable declaration which is the exact physical owner of a source‐spelled class/enum definition embedded in its declarator.

Synopsis

Declared in <SageIII/sageInterface/sageBuilder.h>

[[visibility]]
SgVariableDeclaration*
buildVariableDeclarationWithEmbeddedTag(
    SgName const& name,
    SgType* type,
    SgInitializer* varInit,
    SgScopeStatement* scope,
    SgInitializedName* priorDeclaration,
    SgDeclarationStatement* embeddedDefinition);

Return Value

This class represents the concept of a C or C++ variable declaration.

Parameters

Name

Description

name

This class represents strings within the IR nodes.

type

This class represents the base class for all types.

varInit

This class represents the notion of an initializer for a variable declaration or

scope

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

priorDeclaration

This class represents the notion of a declared variable.

embeddedDefinition

This class represents the concept of a declaration statement.

Created with MrDocs