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

Bump clang-format to version 18 #613

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

stephenswat
Copy link
Member

The version of clang-format that we use in this project is quite old (version 10) and it is no longer able to properly format all of the new stuff that has come into C++. See, for example, the formatting nightmares in #609 and #602. This commit bumps the formatter up to clang-format 18.

@stephenswat stephenswat added cicd Changes related to the CI system formatting This makes the code look better labels Jun 13, 2024
@stephenswat
Copy link
Member Author

This depends on acts-project/machines#106.

@beomki-yeo
Copy link
Contributor

I am fine with v18

@krasznaa
Copy link
Member

Are we also going to update Acts to clang-format-18? 🤔

That one is currently on clang-format-14. (https://github.com/acts-project/acts/blob/main/.github/workflows/checks.yml#L18) So on first order I'd much more prefer to just upgrade to that version in this project as well. Since eventually we'll be importing most of the code from this repository directly into Acts. Which will be a lot easier to do if the formatting already agreed between the two. (Though it may not make much of a difference in the end. Since we'll have to change the naming of all of the classes/functions anyway... 🤔)

Other than that, no strong feeling about the specific version that we would use.

@stephenswat
Copy link
Member Author

stephenswat commented Jun 17, 2024 via email

The version of clang-format that we use in this project is quite old
(version 10) and it is no longer able to properly format all of the new
stuff that has come into C++. See, for example, the formatting
nightmares in acts-project#609 and acts-project#602. This commit bumps the formatter up to
clang-format 18.
@stephenswat stephenswat marked this pull request as ready for review June 20, 2024 11:42
@AJPfleger
Copy link

AJPfleger commented Jul 3, 2024

I think we should also update the following three files:

  • CI/check_format_local
  • docs/contribution/run_formatting.md
  • CONTRIBUTING.rst

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cicd Changes related to the CI system formatting This makes the code look better
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants