Skip to content

Gecode 7: normalized API names, LT constants and Clang checks - #286

Draft
zayenz wants to merge 4 commits into
feature/breaking-7-02-reformatfrom
feature/breaking-7-03-api-and-checks
Draft

zayenz wants to merge 4 commits into
feature/breaking-7-02-reformatfrom
feature/breaking-7-03-api-and-checks

Conversation

@zayenz

@zayenz zayenz commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

With formatting in place from #285, this PR applies the Gecode 7 naming conventions, resolves the existing Clang warnings, and turns on extended linting in CI so every later PR in the stack stays lint-clean.

There are four commits:

  • API identifiers move to snake_case for functions, variables, and members (such as propagatorgroup() -> propagator_group(), modevent() -> modification_event(), no_overlap, and bin_packing), while types keep PascalCase and constants keep UPPER_CASE. The same commit adds missing override specifiers and fixes the remaining Clang diagnostics. It touches 558 files, almost all mechanically.
  • A new check-extended CI job runs misc/check.py all under LLVM 22, covering lint, generated-source freshness, CTest suites, installed-package consumers, and documentation. From this point on, every PR in the stack passes lint at its tip.
  • Strict-less relation constants are renamed from _LE to _LT (IRT_LT, FRT_LT, SRT_LT) with no compatibility aliases. Having IRT_LE mean strictly less right next to IRT_LQ for less-or-equal was a recurring source of confusion; values and semantics do not change, and _LQ stays as it is.
  • Additional clang-tidy performance checks are enabled and their findings fixed: owned branching and open-list callbacks are moved instead of copied, read-only argument arrays in examples avoid unnecessary copies, worker-control thread storage is reserved up front, and ' ' replaces std::endl in multi-line output where flushing is not needed.

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.

  1. Rank solutions with Space::compare in best-solution search #242 Rank solutions with Space::compare
  2. Rename the meta-search hooks to hub and spoke #282 Rename the meta-search hooks to hub and spoke
  3. Give meta search hub and spoke contexts and report why search ended #283 Hub and spoke contexts and end reasons
  4. Add extensible random generators with reproducible stream splitting #241 Splittable random generators
  5. Gecode 7: CMake-only C++23 build baseline #284 Gecode 7: build baseline
  6. Gecode 7: format the sources with LLVM 22 #285 Gecode 7: reformat
  7. Gecode 7: normalized API names, LT constants and Clang checks #286 Gecode 7: API names, LT constants, checks ← this PR
  8. Gecode 7: post nothing for empty arrays #287 Gecode 7: empty arrays
  9. Gecode 7: pass large parameters by const reference #288 Gecode 7: const& parameters
  10. Gecode 7: state and assert the heap size contract #289 Gecode 7: heap contract
  11. Gecode 7: trivially copyable handles and defaulted special members #290 Gecode 7: modern classes
  12. Gecode 7: native float interval instead of Boost #291 Gecode 7: native float interval
  13. Gecode 7: bug fixes and Doxygen warnings #292 Gecode 7: bug fixes and Doxygen
  14. Gecode 7: scoped enums and descriptive constant names #293 Gecode 7: scoped enums
  15. Gecode 7: clang-tidy sweep #274 Gecode 7: clang-tidy sweep

This branch has not been deployed

No deployments
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