Skip to content

SageBuilder::declaration_ownership

Exact structural ownership selected by named declaration producers.

Synopsis

Declared in <SageIII/sageInterface/sageBuilder.h>

class [[visibility("default")]] declaration_ownership;

Enums

Name
kind

Member Functions

Name
getClassRedeclarationTarget
SgClassDeclaration* getClassRedeclarationTarget() const;
getDeclarationGroupOwner
SgDeclarationGroupStatement* getDeclarationGroupOwner() const;
getKind
kind getKind() const;
getSourceLexicalOwner
SgScopeStatement* getSourceLexicalOwner() const;

Static Member Functions

Name Description
embeddedDeclaratorChild
static declaration_ownership embeddedDeclaratorChild();
semanticAuxiliary
static declaration_ownership semanticAuxiliary();
semanticAuxiliaryPendingExactSource
static declaration_ownership semanticAuxiliaryPendingExactSource();
Publish through semantic auxiliary ownership while leaving provenance unclassified for one exact frontend publication. The declaration is structurally auxiliary from construction and can never acquire a lexical source-owner edge.
semanticEmbeddedDeclaratorChild
static declaration_ownership semanticEmbeddedDeclaratorChild();
Construct a detached tag with semantic provenance for typed adoption.
semanticGroupMember
static declaration_ownership semanticGroupMember(SgDeclarationGroupStatement* owner);
semanticLexical
static declaration_ownership semanticLexical();
Publish a semantic declaration directly in its lexical scope.
sourceDeclaratorScopeChildIn
static declaration_ownership sourceDeclaratorScopeChildIn(SgDeclarationScope* owner);
Publish a source-written tag in the exact function declaration scope that owns its declarator spelling while preserving the tag's semantic scope.
sourceGroupMember
static declaration_ownership sourceGroupMember(SgDeclarationGroupStatement* owner);
sourceLexical
static declaration_ownership sourceLexical();
Publish in the semantic scope passed to the builder.
sourceLexicalClassRedeclarationIn
static declaration_ownership sourceLexicalClassRedeclarationIn( SgScopeStatement* lexicalOwner, SgClassDeclaration* canonicalTarget);
Publish a distinct class source surface in a lexical scope while joining an already published exact semantic class declaration family directly. No name or template-argument lookup is permitted for this transaction.
sourceLexicalIn
static declaration_ownership sourceLexicalIn(SgScopeStatement* lexicalOwner);
Publish in a distinct lexical scope without changing semantic scope.
sourceLexicalPendingExactSource
static declaration_ownership sourceLexicalPendingExactSource();
Publish in the semantic scope while leaving provenance unclassified for one later exact physical-source publication by a frontend.
transformationDetached
static declaration_ownership transformationDetached();
Build one generated declaration surface with complete transformation provenance and semantic identity, but no lexical owner. A later typed mutation transaction must publish its exact physical output owner.

Private Member Functions

Name
declaration_ownership
declaration_ownership( kind ownership_kind, SgDeclarationGroupStatement* group_owner, SgScopeStatement* lexical_owner, SgClassDeclaration* class_redeclaration_target); [constructor]

Private Data Members

Name
class_redeclaration_target_
group_owner_
lexical_owner_
ownership_kind_

Created with MrDocs