SageBuilder::buildLabelStatement¶
Note that the scope of a label statement is special. It is SgFunctionDefinition, not the closest scope statement such as SgBasicBlock.
Synopsis¶
Declared in <SageIII/sageInterface/sageBuilder.h>
[[visibility("default")]]
SgLabelStatement*
buildLabelStatement(
SgName const& name,
SgStatement* stmt,
SgScopeStatement* scope = NULL); Return Value¶
This class represents the concept of a C or C++ label statement.
Parameters¶
| Name | Description |
|---|---|
| name | String-backed name value used by AST nodes. |
| stmt | 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