Repository navigation
Conversation
Add .clang-format and .clang-tidy, the misc/check.py format, lint and check commands with their CMake targets, the CI formatting check, and the code style guide. Generated variable headers are formatted with the same rules, and the qmake example projects become CMake projects.
This commit only runs misc/check.py format on the owned sources and regenerates the parser, lexer and variable headers. It also removes the Emacs modelines and converts the one CRLF file to LF.
This was referenced Nov 20, 2026
This branch has not been deployed
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.
Before making wide source changes for Gecode 7, this PR puts formatting and lint tooling in place and runs the formatter once across the repository so later diffs stay readable.
There are two commits, and only the first needs review:
.clang-format(four-space indentation, 120-column limit, LLVM 22) and.clang-tidy, wires up theformat,lint, andcheckcommands inmisc/check.pywith their CMake targets, adds the CI format check, updates.editorconfig, and introducesdocs/code-style.md. Generated variable headers follow the same formatting rules, and the qmake example projects become CMake projects.misc/check.py formaton the owned sources, regenerates the FlatZinc parser, lexer, and variable headers, drops the per-file Emacs modelines (replaced by.editorconfig), and converts the single CRLF file to LF.Once the reformat commit lands on
main, its SHA there will be added to.git-blame-ignore-revs.Stack
Merge in this order. #242 targets
main, and each later PR builds on the one before it so its diff shows only its own commits. The first four PRs are standalone search and random-number changes; #284 through #274 are the Gecode 7 changes split out of what used to be a single branch.