<div dir="ltr"><div>Note that many editors already offer clang-format integration that you might choose to enable. The GROMACS repository now has `.clang-format` files in place, so no additional configuration should be required to produce consistently formatted code, no matter how you choose to invoke clang-format.</div><div><br></div><div>Thanks to all who contributed to making this change happen!</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 7, 2019 at 3:33 PM Paul bauer &lt;<a href="mailto:paul.bauer.q@gmail.com">paul.bauer.q@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hello developers,<br>
<br>
we are now moving our code formatting style enforcing to use <br>
clang-format instead of the custom version of uncrustify we have used up <br>
to now.<br>
This means that all new code for both master and the release-2020 branch <br>
that I will create today has to formatted this way.<br>
<br>
We have added a new clang-format.sh script under admin/ to do this, as <br>
well as updates to admin/reformat_all.sh to change your complete source <br>
tree to it.<br>
The information for this can be found here: <br>
<a href="http://jenkins.gromacs.org/job/Documentation_Nightly_master/javadoc/dev-manual/code-formatting.html" rel="noreferrer" target="_blank">http://jenkins.gromacs.org/job/Documentation_Nightly_master/javadoc/dev-manual/code-formatting.html</a><br>
<br>
I will remove the information about uncrustify shortly, so that only the <br>
instructions for clang-format will be there, with a historical note for <br>
the previous formatting.<br>
<br>
The only things you will need to do is updating the pre-commit hook (if <br>
you have used this before) to make sure that code is properly formatted <br>
before uploading.<br>
<br>
Cheers<br>
<br>
Paul<br>
<br>
-- <br>
Paul Bauer, PhD<br>
GROMACS Release Manager<br>
KTH Stockholm, SciLifeLab<br>
0046737308594<br>
<br>
-- <br>
Gromacs Developers mailing list<br>
<br>
* Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before posting!<br>
<br>
* Can&#39;t post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" rel="noreferrer" target="_blank">http://www.gromacs.org/Support/Mailing_Lists</a><br>
<br>
* For (un)subscribe requests visit<br>
<a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" rel="noreferrer" target="_blank">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a> or send a mail to <a href="mailto:gmx-developers-request@gromacs.org" target="_blank">gmx-developers-request@gromacs.org</a>.<br>
</blockquote></div>