Skip to content

SageBuilder::buildNondefiningClassDeclaration_nfi

Build a class first nondefining declaration, without file info.

Synopsis

Declared in <SageIII/sageInterface/sageBuilder.h>

[[visibility("default")]]
SgClassDeclaration*
buildNondefiningClassDeclaration_nfi(
    declaration_ownership const& ownership,
    SgName const& name,
    SgClassDeclaration::class_types kind,
    SgScopeStatement* scope,
    SgTemplateClassDeclaration* templateDeclaration,
    SgTemplateClassDeclaration* specializedTemplateDeclaration,
    SgTemplateArgumentPtrList* templateArgumentsList,
    SgName const* templateInstantiationNameOverride,
    bool anonymousInternalIdentity = false,
    SgTemplateArgumentPtrList const* semanticTemplateArgumentsList = nullptr,
    bool sourceSpellsInjectedClassName = false,
    SgTemplateArgumentPtrList* deducedTemplateArgumentsList = nullptr);

Description

A non-null templateDeclaration selects SgTemplateInstantiationDecl and is installed by its constructor. Template arguments without that exact identity or its exact selected primary/partial declaration are malformed input. The written list transfers detached arguments and copies arguments owned elsewhere. A separate complete list preserves identity when written arguments omit defaults. Both semantic lists are required for instantiations, including when empty. The deduced list transfers its detached children to the new node.

Return Value

This class represents the concept of a class declaration statement. It includes the

Parameters

Name Description
ownership Exact structural ownership selected by named declaration producers.
name String-backed name value used by AST nodes.
kind A declaration can be of either class, struct, union, or ...
scope This class represents the concept of a scope in C++ (e.g. global scope, fuction scope, etc.).
templateInstantiationNameOverride String-backed name value used by AST nodes.

Created with MrDocs