Skip to content

Use clang-format version 18 for CI format checks#3840

Merged
GuySten merged 2 commits intoopenmc-dev:developfrom
paulromano:update-clang-format
Feb 27, 2026
Merged

Use clang-format version 18 for CI format checks#3840
GuySten merged 2 commits intoopenmc-dev:developfrom
paulromano:update-clang-format

Conversation

@paulromano
Copy link
Contributor

Description

This PR updates the version of clang-format used in our format check CI job to version 18, whereas it is currently using version 15. This was discussed in #2746 and #3829. Version 18 is the default in Ubuntu 24.04 but I'm open to other opinions on what we should be using. After playing around with multiple versions (18, 19, 20), they all give slightly different formatting results so it seems like there is no good way to avoid some churn, but at least with a more recent version it should be easier for people to install if needed.

Checklist

  • I have performed a self-review of my own code
  • I have run clang-format (version 15) on any C++ source files (if applicable)
  • I have followed the style guidelines for Python source files (if applicable)
  • I have made corresponding changes to the documentation (if applicable)
  • I have added tests that prove my fix is effective or that my feature works (if applicable)

@paulromano paulromano requested a review from nelsonag as a code owner February 26, 2026 22:16
Copy link
Contributor

@GuySten GuySten left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@GuySten GuySten added Test Suite Merging Soon PR will be merged in < 24 hrs if no further comments are made. labels Feb 26, 2026
@GuySten GuySten merged commit b3788f1 into openmc-dev:develop Feb 27, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merging Soon PR will be merged in < 24 hrs if no further comments are made. Test Suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants