Skip to content

SageBuilder::buildDefiningFunctionDeclaration

Build a function declaration with a function body

Synopsis

Declared in <SageIII/sageInterface/sageBuilder.h>

[[visibility]]
SgFunctionDeclaration*
buildDefiningFunctionDeclaration(
    SgName const& name,
    SgType* return_type,
    SgFunctionParameterList* parlist,
    SgScopeStatement* scope,
    bool buildTemplateInstantiation,
    SgFunctionDeclaration* first_nondefinng_declaration,
    SgTemplateArgumentPtrList* templateArgumentsList,
    bool forceFreeFunctionScope);

Return Value

This class represents the concept of a function declaration statement.

Parameters

Name

Description

name

This class represents strings within the IR nodes.

return_type

This class represents the base class for all types.

parlist

This class represents the concept of a declaration list.

scope

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

first_nondefinng_declaration

This class represents the concept of a function declaration statement.

Created with MrDocs