Skip to content

Conversation

@cacharle
Copy link
Contributor

The formatter hasn't been run in a long time so I formatted all the files (with the exact same formatting config as before) and added a check in CI/CD.

I feel like having a pre-commit config to run clang-format before commiting might be handy aswell

@coveralls
Copy link

coveralls commented Oct 17, 2025

Pull Request Test Coverage Report for Build 21320833227

Details

  • 48 of 48 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 88.068%

Totals Coverage Status
Change from base Build 20365737922: 0.01%
Covered Lines: 930
Relevant Lines: 1056

💛 - Coveralls

Comment on lines 135 to 140
- name: format
if: ${{ startsWith(matrix.os, 'ubuntu-24') }}
run: |
clang-format --version
git ls-files | grep -E '\.(cpp|hpp)' | xargs clang-format --dry-run --Werror
sudo apt install -y clang-format-20
clang-format-20 --version
git ls-files | grep -E '\.(cpp|hpp)' | xargs clang-format-20 --dry-run --Werror
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is running clang-format 20 only on Ubuntu okay?

Not sure how to solve the fact that people might have different versions installed..

@cacharle cacharle marked this pull request as ready for review October 17, 2025 16:59
@cacharle
Copy link
Contributor Author

@gummif Could you please let me know if this is something that could eventually get merged or should I close it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants