Skip to content

Upgrade clang-format to version 18 and improve version consistency - #428

Merged
Sapd merged 1 commit into
masterfrom
formatfix
Oct 29, 2025
Merged

Sapd merged 1 commit into
masterfrom
formatfix

Conversation

@Sapd

@Sapd Sapd commented Oct 29, 2025

Copy link
Copy Markdown
Owner

Fixes the formatting version mismatch between local development and CI that was causing formatting conflicts in PRs.

Changes:

  • Update CI to use clang-format version 18 (was 16)
  • Update CMakeLists.txt to prefer clang-format-18
  • Add version detection with warnings if using different version
  • Add format-code.sh helper script for easy local formatting
  • Reformat code with version 18 (spacing improvements around casts)

Fixes the formatting version mismatch between local development and CI
that was causing formatting conflicts in PRs.

Changes:
- Update CI to use clang-format version 18 (was 16)
- Update CMakeLists.txt to prefer clang-format-18
- Add version detection with warnings if using different version
- Add format-code.sh helper script for easy local formatting
- Reformat code with version 18 (spacing improvements around casts)

Contributors can now install llvm@18 to match CI:
  macOS: brew install llvm@18
  Linux: apt-get install clang-format-18
@Sapd
Sapd merged commit 67094e9 into master Oct 29, 2025
8 checks passed
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.

1 participant