Skip to content

SageBuilder::buildSemanticInitializedName

Build an initialized name that has no independently written source surface. The result is classified and validated as exact frontend semantic output at this producer; callers must not repair its provenance after attachment.

Synopsis

Declared in <SageIII/sageInterface/sageBuilder.h>

[[visibility]]
SgInitializedName*
buildSemanticInitializedName(
    SgName const& name,
    SgType* type,
    SgInitializer* init = NULL,
    SgVariableDeclaration* declptr = NULL);

Return Value

This class represents the notion of a declared variable.

Parameters

Name

Description

name

This class represents strings within the IR nodes.

type

This class represents the base class for all types.

init

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

declptr

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

Created with MrDocs