findent indents/beautifies/converts and can optionally generate the dependencies of Fortran sources.
- Supports Fortran-66 up to Fortran-2018
- Converts from Fixed Form to Free Form and vice-versa
- Honours
cppandcocopreprocess statements - Honours OpenMP conditionals
- Validated against all constructs in 'Modern Fortran explained, Incorporating Fortran 2018, Metcalf e.a.'
- Supported platformrs: Unix and Windows
- High speed: 50K - 100K lines per second
- vim, gedit, emacs: findent optionally emits configuration files for these editors to use findent as a plugin.
Normal installation using pip
pip install findent| OS | Architecture |
|---|---|
| Linux | x64, arm64, i686, aarch64, ppc64, s390x |
| MacOS | x64, arm64 |
| Windows | x64 |
findent < in.f90 > out.f90findent -i4 -Rr < in.f > out.f90wfindent -i4 -Rr *.ffindent will generate a dependency list for:
- definitions and uses of modules and submodules
include,#includeand??includestatements
In your Makefile add something similar to:
findent --makefdeps > makefdeps
chmod +x makefdeps
include deps
dep deps:
./makefdeps *.f90 > depsThe flag --makefdeps generates a script in the standard output.
Depending on your usecase the script might not suffice and you will need to write your own version.
Installation instructions:
findent --vim_helpDocumentation:
:help equalprg
:help indentexpr
Installation instructions:
findent --gedit_helpInstallation instructions:
findent --emacs_help