Skip to content

SageBuilder::buildNondefiningFunctionDeclaration

Build a prototype for a function, handle function type, symbol etc transparently

Synopsis

Declared in <SageIII/sageInterface/sageBuilder.h>

[[visibility]]
SgFunctionDeclaration*
buildNondefiningFunctionDeclaration(
    SgName const& name,
    SgType* return_type,
    SgFunctionParameterList* parlist,
    SgScopeStatement* scope = NULL,
    bool buildTemplateInstantiation = false,
    SgTemplateArgumentPtrList* templateArgumentsList = NULL,
    SgStorageModifier::storage_modifier_enum sm = SgStorageModifier::e_default,
    bool forceFreeFunctionScope = false);

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.).

sm

Storage Modifiers (only one value can be specified)

Created with MrDocs