Skip to content

SageBuilder::function_declaration_ownership::sourceLexicalCanonicalReplacementAtTop

Publish a generated declaration at the beginning of an exact lexical owner and make it the canonical declaration/symbol basis of an existing declaration family.

Synopsis

Declared in <SageIII/sageInterface/sageBuilder.h>

static
function_declaration_ownership
sourceLexicalCanonicalReplacementAtTop(
    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