fprettify
fprettify copied to clipboard
auto-formatter for modern fortran source code
After creating #99 and using it for a while, here are some of the limitations or problems I've found (that are not solved with the PR): * Keyword arguments to...
Thank you very much for developing this great package! In the current version, there are three options concerning disable indentation: --disable-indent don't impose indentation (default: False) --disable-fypp Disables the indentation...
- fprettify: 0.3.7 ```fortran program main 12345 if (.false.) then if (.false.) then end if end if end program ``` fprettify formats the above to below ```fortran program main 12345...
- fprettify: 0.3.7 Consider the following file: ```fortran program main integer :: x = 1 integer :: f f = ((1*x + 2)*x & + 3) 100 f = ((1*x...
At present fprettify can add whitespaces for the following binary operators: * `+` and `-` * `*` and `/` * `==`, `/=`, etc But it always removes spaces before and...
- [x] I'd like spaces after commas in declarations, but not in arguments of procedure definition or call, or in array indices. #99 - [x] I'd like indenting blocks, but...
For lines that end in a semicolon, the reformatting process adds a trailing `space` character. This occurs even with `--whitespace=0`, but does not happen when passing the `--disable-indent` flag.
I found that "module procedure" handling is a bit tricky. In a submodule, "module procedure" acts as a subroutine with no parameters. In an interface, it just is a generic....
I ran two tests in files with cpp style preprocessor statements. In the first (which has been run through fprettify): ``` program test implicit none integer :: a, b, c,...