Add build targets for source code formatting
This makes it possible to run:
-
make format-fortran
to format Fortran source files withfprettify
; -
make format-c
to format C/C++ source files withclang-format
; -
make format
that does both.
Although .clang-format
is there, most (if not all) of the C/C++ source files in the repo are not formatted according to it. I don't want to mess with the authorship of the lines in git blame
, so I leave it to the core developers to decide what to do about it.
If this is accepted, it should replace the existing logic in the CI, I guess.
Merge request reports
Activity
requested review from @b381660
mentioned in merge request !25 (merged)
- Resolved by Yen-Chen Chen
mentioned in commit 1b6af435
@b382190 I would like to merge this before any other MR that I have submitted. So, please, merge this if it's fine with you and create a follow-up MR that reformats the files (it's up to you how to handle the authorship of the commits). After that, I will rebase the rest of the MRs and do the reformatting there.
P.S. You already merged, thanks!
mentioned in merge request !28 (merged)