Format CMake files with cmake-format#807
Merged
thilinarmtb merged 5 commits intodevelopmentfrom Nov 7, 2025
Merged
Conversation
71587fa to
3b39e13
Compare
3b39e13 to
d3fd47c
Compare
There was a problem hiding this comment.
Pull Request Overview
This pull request applies cmake-format to standardize CMake file formatting across the entire OCCA project. The changes introduce a .cmake_format.json configuration file with an 80-character line width and 2-space indentation, add a new GitHub Actions workflow to enforce formatting on future changes, and reformat all existing CMake files according to these standards.
- Adds
.cmake_format.jsonconfiguration file with formatting rules - Adds
.github/workflows/format.ymlto check CMake formatting in CI - Reformats all
CMakeLists.txtand.cmakefiles throughout the project
Reviewed Changes
Copilot reviewed 74 out of 77 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
.cmake_format.json |
New configuration file defining CMake formatting standards (80-char width, 2-space indent) |
.github/workflows/format.yml |
New CI workflow to verify CMake formatting on push/PR |
.github/workflows/cff-validator.yml |
Adds pull_request trigger for CITATION.cff validation |
.github/workflows/build.yml |
Removes trailing blank line |
CMakeLists.txt |
Reformatted according to cmake-format standards |
bin/CMakeLists.txt |
Reformatted with consistent indentation and line wrapping |
cmake/*.cmake |
All Find modules and helper scripts reformatted |
src/**/CMakeLists.txt |
All source directory build files reformatted for consistency |
tests/CMakeLists.txt |
Test configuration reformatted |
examples/**/CMakeLists.txt |
All example build files reformatted |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
2c3ae8b to
a1baea0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
And update GitHub CI workflows.