Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update clang-format version to 17.0.4 and activate InsertBraces #2981

Merged
merged 2 commits into from
Nov 6, 2023

Conversation

heplesser
Copy link
Contributor

This PR hikes the clang-format version to 17.0.4, the current version at this point, which is available via PyPi for all relevant OS (https://pypi.org/project/clang-format/#files). It also activates automatic insertion of braces around blocks (https://clang.llvm.org/docs/ClangFormatStyleOptions.html#insertbraces); this feature became available with clang-format 15.

Code format changes due to the transition from 13 to 17 are minimal, see below.

Also fixes a forgotten requirements hike for cmake.

@terhorstd @jessica-mitchell I'd appreciate it if you could review this quickly as #2867 would benefit from it.

@heplesser heplesser added S: Normal Handle this with default priority T: Maintenance Work to keep up the quality of the code and documentation. I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) labels Nov 4, 2023
@heplesser heplesser added this to To do in Build system and CI via automation Nov 4, 2023
Copy link
Contributor

@jessica-mitchell jessica-mitchell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my side it looks good

Copy link
Contributor

@terhorstd terhorstd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Together with some discussion this looks good to me. 👍

@terhorstd terhorstd changed the title Updated clang-format version to 17.0.4 and activate InsertBraces Update clang-format version to 17.0.4 and activate InsertBraces Nov 6, 2023
@terhorstd terhorstd merged commit ae7c720 into nest:master Nov 6, 2023
21 checks passed
Build system and CI automation moved this from To do to Done Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) S: Normal Handle this with default priority T: Maintenance Work to keep up the quality of the code and documentation.
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants