Skip to content

SageBuilder::buildEnumDeclaration

Build an enum, It is also a declaration statement in SAGE III

Synopsis

Declared in <SageIII/sageInterface/sageBuilder.h>

[[visibility]]
SgEnumDeclaration*
buildEnumDeclaration(
    declaration_ownership const& ownership,
    SgName const& name,
    bool isUnNamed,
    SgScopeStatement* scope);

Return Value

This class represents the concept of an enum declaration.

Parameters

Name

Description

ownership

Exact structural ownership selected by named declaration producers.

name

This class represents strings within the IR nodes.

scope

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

Created with MrDocs