SageBuilder::buildProcedureHeaderStatementFromExactDefinition¶
Complete a bottom-up Fortran procedure construction around its exact preconstructed definition and body. The definition is consumed exactly once and must already carry final source classification and scope identity.
Synopsis¶
Declared in <SageIII/sageInterface/sageBuilder.h>
[[visibility("default")]]
SgProcedureHeaderStatement*
buildProcedureHeaderStatementFromExactDefinition(
function_declaration_ownership const& ownership,
SgFunctionDefinition* exact_definition,
char const* name,
SgType* return_type,
SgFunctionParameterList* parlist,
SgProcedureHeaderStatement::subprogram_kind_enum,
SgProcedureHeaderStatement::fortran_procedure_source_form_enum source_form,
SgScopeStatement* scope,
SgProcedureHeaderStatement* first_nondefining_declaration,
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. |
| return_type | This class represents the base class for all types. |
| parlist | 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