SageBuilder::buildUnpublishedVariableDeclaration¶
Build one source-positioned variable declaration without publishing a symbol. This is an internal transaction primitive: the caller must establish exact lexical ownership and publish the symbol before returning the declaration to application code.
Synopsis¶
Declared in <SageIII/sageInterface/sageBuilder.h>
[[visibility("default")]]
SgVariableDeclaration*
buildUnpublishedVariableDeclaration(
SgName const& name,
SgType* type,
SgInitializer* varInit,
SgScopeStatement* scope); Return Value¶
This class represents the concept of a C or C++ variable declaration.
Parameters¶
| Name | Description |
|---|---|
| name | String-backed name value used by AST 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.). |
Created with MrDocs