Modules

ModuleSource FileDescription
ffmt_case ffmt_case.f90

Letter case of keywords, dot operators, intrinsic procedures, the constants of the intrinsic modules, and kinds.

Read more…
ffmt_cli ffmt_cli.f90

Command-line interface: argument parsing and processing of files and directories.

ffmt_config ffmt_config.f90

Configuration files.

Read more…
ffmt_constructs ffmt_constructs.f90

Classifies statements by their role in the block structure: opening a construct or program unit, continuing one (else, case, contains, ...), or closing one.

Read more…
ffmt_diff ffmt_diff.f90

Unified diffs of two texts, for --diff.

Read more…
ffmt_directives ffmt_directives.f90

Formatter directives in comments, which protect code from formatting:

Read more…
ffmt_format ffmt_format.f90

Formatting a whole source text: the main library entry point.

ffmt_fs ffmt_fs.f90

Portable file system access that standard Fortran lacks: listing a directory and telling directories from files. Written in Fortran with interfaces to opendir, readdir and closedir, which POSIX systems and MinGW-w64 (gfortran on Windows) provide.

Read more…
ffmt_io ffmt_io.f90

Reading and writing whole files as bytes, so that line endings are preserved on every platform.

ffmt_layout ffmt_layout.f90

Writes the formatted text of a tokenized file: statements indented by their nesting depth, continuation lines aligned or indented by a fixed amount, comment lines indented like the code around them, and within each line the blanks and letter case that compute_gaps and compute_case ask for. Trailing blanks are removed.

Read more…
ffmt_lexer ffmt_lexer.f90

Lexer for free-form Fortran.

Read more…
ffmt_linebreak ffmt_linebreak.f90

Splitting code lines that are longer than the line length.

Read more…
ffmt_options ffmt_options.f90

Formatting options: all the settings, with their defaults, and the modes they take. The modules that apply them (ffmt_whitespace, ffmt_case, ffmt_relational, ffmt_layout) use this module, not the other way round, so it depends on nothing.

ffmt_relational ffmt_relational.f90

Spelling of the relational operators: == / .eq., /= / .ne., < / .lt., <= / .le., > / .gt. and >= / .ge.. The two spellings are the same operator, also in operator(...).

Read more…
ffmt_settings ffmt_settings.f90

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

Read more…
ffmt_source ffmt_source.f90

A source text read for formatting: its tokens, its statements and which of them formatter directives protect. Every pass that works on the text (formatting, line splitting, relational spelling, use sorting) starts from one of these.

ffmt_statements ffmt_statements.f90

Groups tokens into statements and standalone lines.

Read more…
ffmt_strings ffmt_strings.f90

String helpers.

ffmt_structure ffmt_structure.f90

Block structure of a file: the nesting depth of every statement, from a stack of open constructs, plus diagnostics for statements that do not fit (an end with nothing to close, an else outside an if, a construct still open at the end of the file, ...).

ffmt_tokens ffmt_tokens.f90

Tokens of free-form Fortran source.

Read more…
ffmt_use_sort ffmt_use_sort.f90

Sorting use statements, and the names in their only: lists, alphabetically ignoring case.

Read more…
ffmt_walk ffmt_walk.f90

Finding the Fortran files under a directory.

Read more…
ffmt_whitespace ffmt_whitespace.f90

Whitespace rules within lines: the blanks wanted between pairs of adjacent tokens.

Read more…
module~~graph~~ModuleGraph module~ffmt_case ffmt_case module~ffmt_options ffmt_options module~ffmt_case->module~ffmt_options module~ffmt_source ffmt_source module~ffmt_case->module~ffmt_source module~ffmt_statements ffmt_statements module~ffmt_case->module~ffmt_statements module~ffmt_tokens ffmt_tokens module~ffmt_case->module~ffmt_tokens module~ffmt_cli ffmt_cli module~ffmt_config ffmt_config module~ffmt_cli->module~ffmt_config module~ffmt_diff ffmt_diff module~ffmt_cli->module~ffmt_diff module~ffmt_format ffmt_format module~ffmt_cli->module~ffmt_format module~ffmt_fs ffmt_fs module~ffmt_cli->module~ffmt_fs module~ffmt_io ffmt_io module~ffmt_cli->module~ffmt_io module~ffmt_cli->module~ffmt_options module~ffmt_settings ffmt_settings module~ffmt_cli->module~ffmt_settings module~ffmt_strings ffmt_strings module~ffmt_cli->module~ffmt_strings module~ffmt_walk ffmt_walk module~ffmt_cli->module~ffmt_walk iso_fortran_env iso_fortran_env module~ffmt_cli->iso_fortran_env module~ffmt_config->module~ffmt_fs module~ffmt_config->module~ffmt_settings module~ffmt_config->module~ffmt_strings tomlf tomlf module~ffmt_config->tomlf tomlf_constants tomlf_constants module~ffmt_config->tomlf_constants module~ffmt_constructs ffmt_constructs module~ffmt_constructs->module~ffmt_statements module~ffmt_constructs->module~ffmt_strings module~ffmt_constructs->module~ffmt_tokens module~ffmt_diff->module~ffmt_strings module~ffmt_diff->iso_fortran_env module~ffmt_directives ffmt_directives module~ffmt_directives->module~ffmt_statements module~ffmt_directives->module~ffmt_tokens module~ffmt_format->module~ffmt_case module~ffmt_layout ffmt_layout module~ffmt_format->module~ffmt_layout module~ffmt_lexer ffmt_lexer module~ffmt_format->module~ffmt_lexer module~ffmt_linebreak ffmt_linebreak module~ffmt_format->module~ffmt_linebreak module~ffmt_format->module~ffmt_options module~ffmt_relational ffmt_relational module~ffmt_format->module~ffmt_relational module~ffmt_format->module~ffmt_source module~ffmt_format->module~ffmt_statements module~ffmt_format->module~ffmt_strings module~ffmt_structure ffmt_structure module~ffmt_format->module~ffmt_structure module~ffmt_format->module~ffmt_tokens module~ffmt_use_sort ffmt_use_sort module~ffmt_format->module~ffmt_use_sort module~ffmt_whitespace ffmt_whitespace module~ffmt_format->module~ffmt_whitespace iso_c_binding iso_c_binding module~ffmt_fs->iso_c_binding module~ffmt_layout->module~ffmt_case module~ffmt_layout->module~ffmt_options module~ffmt_layout->module~ffmt_source module~ffmt_layout->module~ffmt_statements module~ffmt_layout->module~ffmt_strings module~ffmt_layout->module~ffmt_structure module~ffmt_layout->module~ffmt_tokens module~ffmt_layout->module~ffmt_whitespace module~ffmt_lexer->module~ffmt_strings module~ffmt_lexer->module~ffmt_tokens module~ffmt_linebreak->module~ffmt_source module~ffmt_linebreak->module~ffmt_statements module~ffmt_linebreak->module~ffmt_strings module~ffmt_linebreak->module~ffmt_tokens module~ffmt_relational->module~ffmt_options module~ffmt_relational->module~ffmt_source module~ffmt_relational->module~ffmt_statements module~ffmt_relational->module~ffmt_strings module~ffmt_relational->module~ffmt_tokens module~ffmt_settings->module~ffmt_options module~ffmt_settings->module~ffmt_strings module~ffmt_source->module~ffmt_directives module~ffmt_source->module~ffmt_lexer module~ffmt_source->module~ffmt_statements module~ffmt_source->module~ffmt_tokens module~ffmt_statements->module~ffmt_strings module~ffmt_statements->module~ffmt_tokens module~ffmt_structure->module~ffmt_constructs module~ffmt_structure->module~ffmt_source module~ffmt_structure->module~ffmt_statements module~ffmt_structure->module~ffmt_strings module~ffmt_structure->module~ffmt_tokens module~ffmt_tokens->module~ffmt_strings module~ffmt_use_sort->module~ffmt_source module~ffmt_use_sort->module~ffmt_statements module~ffmt_use_sort->module~ffmt_strings module~ffmt_use_sort->module~ffmt_tokens module~ffmt_walk->module~ffmt_fs module~ffmt_walk->module~ffmt_strings fregex fregex module~ffmt_walk->fregex module~ffmt_whitespace->module~ffmt_options module~ffmt_whitespace->module~ffmt_source module~ffmt_whitespace->module~ffmt_statements module~ffmt_whitespace->module~ffmt_strings module~ffmt_whitespace->module~ffmt_tokens proc~read_stdin read_stdin proc~read_stdin->module~ffmt_strings proc~read_stdin->iso_fortran_env
Help