Skip to content

SageBuilder::function_declaration_ownership::sourceLexicalCanonicalReplacementBefore

Publish a generated declaration immediately before an exact source anchor and make it the canonical declaration/symbol basis of an existing declaration family. The target remains in its original lexical owner.

Synopsis

Declared in <SageIII/sageInterface/sageBuilder.h>

static
function_declaration_ownership
sourceLexicalCanonicalReplacementBefore(
    SgScopeStatement* lexicalOwner,
    SgStatement* anchor,
    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.).

anchor

This class represents the notion of a statement.

target

This class represents the concept of a function declaration statement.

Created with MrDocs