Skip to content

SageBuilder::buildProcedureHeaderStatement

Build a defining Fortran procedure with an explicit lexical source form.

Synopsis

Declared in <SageIII/sageInterface/sageBuilder.h>

[[visibility]]
SgProcedureHeaderStatement*
buildProcedureHeaderStatement(
    function_declaration_ownership const& ownership,
    SgName const& name,
    SgType* return_type,
    SgFunctionParameterList* parameter_list,
    SgFunctionParameterList* canonical_parameter_list,
    SgProcedureHeaderStatement::subprogram_kind_enum,
    SgProcedureHeaderStatement::fortran_procedure_source_form_enum source_form,
    SgScopeStatement* scope);

Parameters

Name

Description

ownership

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

name

This class represents strings within the IR nodes.

return_type

This class represents the base class for all types.

parameter_list

This class represents the concept of a declaration list.

canonical_parameter_list

This class represents the concept of a declaration list.

source_form

Exact Fortran source surface represented by this procedure.

scope

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

Created with MrDocs