Skip to content

SageBuilder::buildNondefiningProcedureHeaderStatement

Build a nondefining SgProcedureHeaderStatement, handle function type, symbol etc transparently

Synopsis

Declared in <SageIII/sageInterface/sageBuilder.h>

[[visibility("default")]]
SgProcedureHeaderStatement*
buildNondefiningProcedureHeaderStatement(
    function_declaration_ownership const& ownership,
    SgName const& name,
    SgType* return_type,
    SgFunctionParameterList* param_list,
    SgProcedureHeaderStatement::subprogram_kind_enum,
    SgProcedureHeaderStatement::fortran_procedure_source_form_enum source_form,
    SgScopeStatement* scope,
    FortranBlockDataBuilderIdentity const* block_data_identity = nullptr);

Parameters

Name Description
ownership Exact, typed structural ownership established by function-declaration builders. Invalid kind/owner combinations cannot be constructed.
name String-backed name value used by AST nodes.
return_type This class represents the base class for all types.
param_list The ordered parameter declarations of a function.
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.).
block_data_identity Build a Fortran subroutine or procedure

Created with MrDocs