fprettify
fprettify copied to clipboard
auto-formatter for modern fortran source code
This is a sort of brute-force workaround to avoid #153. Likely not up to the standard of `fprettify` but 'works-for-me'. Test amended to cover the corner case, I think.
If a Fortran line is continued across multiple lines and contains a relation that is going to be replaced, linebreaks are not correct and the output is wrong (only tested...
I've come across misalignments when `select case` blocks included a `name: ` with them, e.g. ```fortran case_label: select case (r) case (1) case_label case (2) case_label end select case case_label...
With the new Fortran coarrays, formatting results are slightly awkward: ``` real, allocatable :: a(:)[:] ``` is formatted into ``` real, allocatable :: a(:) [:] ``` Every time the `[]`...
Consider the following file: ```fortran module mymod use, intrinsic :: iso_c_binding public mytype type mytype contains final destruct end type enum, bind(C) enumerator one end enum interface myinterface module procedure...
The documentation now showcases how to define and use a configuration file. Minor lints on the underlying markdown syntax.
It is the implementation and its testing to resolve #144 Supports quadruple_precision expressions such as r = 1.0Q-10
Could an example config file be provided? I can't seem to be able to format it properly to support the CASE argument. Thank you for your work!
Writing code with the following notation in quadruple precision would result in wasted spaces that would cause the compilation to fail, as shown below code ```Fortran real(16) :: r r=1.0q-10...
Is it possible to add an option to do this within the programme? Thanks for the great project!