Skip to content

SageBuilder::function_declaration_ownership::sourceLexicalPendingExactSourceRedeclarationIn

Construct a distinct source redeclaration in its exact lexical owner, join an already published canonical function family, and leave the declaration subtree unclassified until the frontend publishes its exact source ranges. This is the source/redeclaration transaction for a declaration whose lexical and semantic owners differ, such as a qualified friend member declaration.

Synopsis

Declared in <SageIII/sageInterface/sageBuilder.h>

static
function_declaration_ownership
sourceLexicalPendingExactSourceRedeclarationIn(
    SgScopeStatement* lexicalOwner,
    SgFunctionDeclaration* target);

Return Value

Exact, typed structural ownership established by function‐declaration builders. Invalid kind/owner combinations cannot be constructed.

Parameters

Name

Description

lexicalOwner

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

target

This class represents the concept of a function declaration statement.

Created with MrDocs