[gmx-developers] Change to clang-format

Paul bauer paul.bauer.q at gmail.com
Thu Nov 7 13:33:41 CET 2019


Hello developers,

we are now moving our code formatting style enforcing to use 
clang-format instead of the custom version of uncrustify we have used up 
to now.
This means that all new code for both master and the release-2020 branch 
that I will create today has to formatted this way.

We have added a new clang-format.sh script under admin/ to do this, as 
well as updates to admin/reformat_all.sh to change your complete source 
tree to it.
The information for this can be found here: 
http://jenkins.gromacs.org/job/Documentation_Nightly_master/javadoc/dev-manual/code-formatting.html

I will remove the information about uncrustify shortly, so that only the 
instructions for clang-format will be there, with a historical note for 
the previous formatting.

The only things you will need to do is updating the pre-commit hook (if 
you have used this before) to make sure that code is properly formatted 
before uploading.

Cheers

Paul

-- 
Paul Bauer, PhD
GROMACS Release Manager
KTH Stockholm, SciLifeLab
0046737308594



More information about the gromacs.org_gmx-developers mailing list