ffmt_settings Module

Named settings, as written in a config file or given on the command line, applied to the options.

Setting Values
indent, base-indent, continuation-indent 0 to 64
indent-units, indent-procedures, indent-fypp, indent-comments, split, sort-use, sort-use-only true, false
continuation align, indent
column1-comments indent (like the code around them), keep (stay in column 1)
line-length 0 (no limit) to 100000
relational symbols, letters, keep
comment-spacing 0 to 64, or keep
spaces.RULE (or spaces.all) add, remove, keep
case.WHAT: keywords, operators, procedures, constants, types or all lower, upper, keep

Uses

  • module~~ffmt_settings~~UsesGraph module~ffmt_settings ffmt_settings module~ffmt_options ffmt_options module~ffmt_settings->module~ffmt_options module~ffmt_strings ffmt_strings module~ffmt_settings->module~ffmt_strings

Used by

  • module~~ffmt_settings~~UsedByGraph module~ffmt_settings ffmt_settings module~ffmt_cli ffmt_cli module~ffmt_cli->module~ffmt_settings module~ffmt_config ffmt_config module~ffmt_cli->module~ffmt_config module~ffmt_config->module~ffmt_settings

Derived Types

type, public ::  setting_t

A named setting with its value as text.

Components

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: key

the name, e.g. indent or spaces.comma

character(len=:), public, allocatable :: value

the value, e.g. 4, true or add


Subroutines

public subroutine apply_setting(opts, key, value, stat, errmsg)

Apply one setting to opts. stat is nonzero, with a message, for an unknown setting or a bad value.

Arguments

Type IntentOptional Attributes Name
type(format_options_t), intent(inout) :: opts

the options to change

character(len=*), intent(in) :: key

setting name, as in the table above

character(len=*), intent(in) :: value

its value as text

integer, intent(out) :: stat

0, or 1 for an unknown setting or a bad value

character(len=:), intent(out), allocatable :: errmsg

what is wrong, if stat is nonzero