Skip to content

Gecode 7: clang-tidy sweep - #274

Merged
zayenz merged 8 commits into
mainfrom
feature/breaking-7
Dec 1, 2026
Merged

zayenz merged 8 commits into
mainfrom
feature/breaking-7

Conversation

@zayenz

@zayenz zayenz commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

This is the final PR of the eleven-PR Gecode 7 series: the clang-tidy sweep. It enables whole check groups in .clang-tidy, excludes the checks that do not fit, and fixes what the enabled checks report. It is eight commits, each enabling its checks together with their fixes:

  1. Remove the (void) parameter lists (672 files, mechanical; the message holds the script that reproduces it).
  2. Enable the bugprone and misc checks.
  3. Enable the readability checks.
  4. Enable the modernize checks.
  5. Use nested namespace definitions (827 files, mostly reindentation).
  6. Enable the checks from other groups and the analyzer groups.
  7. Lint the FlatZinc parser and lexer actions.
  8. Document the clang-tidy check selection.

Commits 1 and 5 touch most files without changing behaviour, so they are kept apart and can go in .git-blame-ignore-revs. Commits 3 and 4 are mostly fix-it rewrites: contains(), empty(), starts_with(), range-based loops, using for typedef, make_unique, else after return, matching parameter names, and the like.

Changes that affect behaviour or the API, and deserve a closer look, are in commits 2 and 6:

  • Self-assignment: NaryInter and NaryUnion dropped their free list when assigned to themselves. Assignment operators now return T& to *this.
  • Exceptions: destructor exception-escape checks are enabled, with three false positives marked. FlatZinc::Error, AST::TypeError, and ShapeError derive from std::exception and provide what(), and tests that threw a raw int use std::logic_error.
  • API and safety: reserved identifiers are rejected (allowing _GNU_SOURCE in blackbox-backend.cpp), rvalue reference parameters must be moved, BranchPlugin gets a virtual destructor, a virtual function loses its default argument, file-local functions get internal linkage, and the CRTP bases SparseTupleState and BlockClient get private constructors.
  • Clang static analyzer: the cplusplus, deadcode, nullability, optin, security, unix, and valist groups are enabled. The dead stores they find go, including an unused search timer in Gist, and every remaining suppression is documented in place.

Commit 7 extends linting into the Bison grammar actions, the Flex lexer, and parser.hh, making internal parser helpers static and isolating the free() of strdup token strings in one helper. Commit 8 records in docs/code-style.md why each excluded check was left off, so later reviews start from the reasons.

Tested at the tip on macOS: the build has no warnings, formatting and misc/check.py lint pass, and check passes 570 of 570. Every commit builds without warnings. Lint is clean only at the tip, as it was in the per-check series this replaces: a few = default and generated-table fixes land in commit 4, and the parser-action fixes in commit 7. Commit 3 is the one new intermediate state (its readability fixes used to come after the modernize ones), and it also passes check.

Stack

#242, #282, #283, #241, and #284 through #293 are merged. This PR targets main, and #294 builds on it.

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

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Too many files!

This PR contains 1036 files, which is 736 over the limit of 300.

To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch.

Usage-priced reviews support at most 500 files.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 0cd2508c-1b78-4bc4-a0ff-45c2e5781bbb
Commits

Reviewing files that changed from the base of the PR and between 0f399a4 and 8ea9ee1.

Files selected for processing: 1036

  • .clang-tidy
  • .github/ci/32-bit-linkage-smoke.sh
  • .github/ci/cmake-consumer-smoke-msys2.sh
  • .github/ci/cmake-consumer-smoke-vcpkg.ps1
  • .github/ci/cmake-consumer-smoke.ps1
  • .github/ci/cmake-consumer-smoke.sh
  • .github/ci/qt-gist-consumer-smoke.sh
  • changelog.in
  • docs/code-style.md
  • examples/all-interval.cpp
  • examples/alpha.cpp
  • examples/archimedean-spiral.cpp
  • examples/bacp.cpp
  • examples/bibd.cpp
  • examples/bin-packing.cpp
  • examples/black-hole.cpp
  • examples/car-sequencing.cpp
  • examples/cartesian-heart.cpp
  • examples/colored-matrix.cpp
  • examples/common-pattern.cpp
  • examples/common-pattern.hh
  • examples/crew.cpp
  • examples/crossword.cpp
  • examples/crowded-chess.cpp
  • examples/descartes-folium.cpp
  • examples/dominating-queens.cpp
  • examples/domino.cpp
  • examples/donald.cpp
  • examples/efpa.cpp
  • examples/eq20.cpp
  • examples/fifteen-puzzle.cpp
  • examples/golden-spiral.cpp
  • examples/golf.cpp
  • examples/golomb-ruler.cpp
  • examples/graph-color.cpp
  • examples/grocery.cpp
  • examples/hamming.cpp
  • examples/ind-set.cpp
  • examples/job-shop-instances.hpp
  • examples/job-shop.cpp
  • examples/kakuro.cpp
  • examples/knights.cpp
  • examples/langford-number.cpp
  • examples/magic-sequence.cpp
  • examples/magic-square-partial.cpp
  • examples/magic-square.cpp
  • examples/minesweeper.cpp
  • examples/money.cpp
  • examples/multi-bin-packing.cpp
  • examples/nonogram.cpp
  • examples/open-route.cpp
  • examples/open-shop.cpp
  • examples/ortho-latin.cpp
  • examples/partition.cpp
  • examples/pentominoes.cpp
  • examples/perfect-square.cpp
  • examples/photo.cpp
  • examples/qcp.cpp
  • examples/queen-armies.cpp
  • examples/queens.cpp
  • examples/radiotherapy.cpp
  • examples/sat.cpp
  • examples/schurs-lemma.cpp
  • examples/scowl.hpp
  • examples/sports-league.cpp
  • examples/steel-mill.cpp
  • examples/steiner.cpp
  • examples/sudoku-advanced.cpp
  • examples/sudoku-instances.hh
  • examples/sudoku.cpp
  • examples/tsp.cpp
  • examples/tsptw.cpp
  • examples/warehouses.cpp
  • examples/word-square.cpp
  • gecode/driver.hh
  • gecode/driver/options.cpp
  • gecode/driver/options.hpp
  • gecode/driver/script.cpp
  • gecode/driver/script.hpp
  • gecode/flatzinc.hh
  • gecode/flatzinc/ast.hh
  • gecode/flatzinc/blackbox-backend.cpp
  • gecode/flatzinc/blackbox-backend.hh
  • gecode/flatzinc/blackbox-process-none.cpp
  • gecode/flatzinc/blackbox-process-posix.cpp
  • gecode/flatzinc/blackbox-process-windows.cpp
  • gecode/flatzinc/blackbox-process.hh
  • gecode/flatzinc/blackbox-propagator.cpp
  • gecode/flatzinc/blackbox.hh
  • gecode/flatzinc/branch.cpp
  • gecode/flatzinc/branch.hh
  • gecode/flatzinc/branch.hpp
  • gecode/flatzinc/complete.hh
  • gecode/flatzinc/conexpr.hh
  • gecode/flatzinc/exampleplugin/myplugin.hh
  • gecode/flatzinc/flatzinc.cpp
  • gecode/flatzinc/lastval.hh
  • gecode/flatzinc/lexer.lxx
  • gecode/flatzinc/lexer.yy.cpp
  • gecode/flatzinc/option.hh
  • gecode/flatzinc/parser.hh
  • gecode/flatzinc/parser.tab.cpp
  • gecode/flatzinc/parser.tab.hpp
  • gecode/flatzinc/parser.yxx
  • gecode/flatzinc/plugin.hh
  • gecode/flatzinc/registry-float.cpp
  • gecode/flatzinc/registry-internal.hh
  • gecode/flatzinc/registry-scheduling.cpp
  • gecode/flatzinc/registry-set.cpp
  • gecode/flatzinc/registry.cpp
  • gecode/flatzinc/registry.hh
  • gecode/flatzinc/symboltable.hh
  • gecode/flatzinc/varspec.hh
  • gecode/float.hh
  • gecode/float/arithmetic.hh
  • gecode/float/arithmetic/abs.hpp
  • gecode/float/arithmetic/div.hpp
  • gecode/float/arithmetic/min-max.hpp
  • gecode/float/arithmetic/mult.hpp
  • gecode/float/arithmetic/pow-nroot.hpp
  • gecode/float/arithmetic/sqr-sqrt.hpp
  • gecode/float/array-traits.hpp
  • gecode/float/array.hpp
  • gecode/float/bool.hh
  • gecode/float/bool/ite.hpp
  • gecode/float/branch.hh
  • gecode/float/branch/action.hpp
  • gecode/float/branch/assign.hpp
  • gecode/float/branch/chb.hpp
  • gecode/float/branch/merit.hpp
  • gecode/float/branch/traits.hpp
  • gecode/float/branch/val-commit.hpp
  • gecode/float/branch/val-sel-commit.cpp
  • gecode/float/branch/val-sel.hpp
  • gecode/float/branch/val.hpp
  • gecode/float/branch/var.hpp
  • gecode/float/branch/view-sel.cpp
  • gecode/float/channel.hh
  • gecode/float/channel/channel.hpp
  • gecode/float/exception.cpp
  • gecode/float/exception.hpp
  • gecode/float/interval.hpp
  • gecode/float/limits.hpp
  • gecode/float/linear.hh
  • gecode/float/linear/nary.hpp
  • gecode/float/linear/post.cpp
  • gecode/float/num.hpp
  • gecode/float/rel.hh
  • gecode/float/rel/eq.hpp
  • gecode/float/rel/lq-le.hpp
  • gecode/float/rel/nq.hpp
  • gecode/float/relax.cpp
  • gecode/float/rounding.cpp
  • gecode/float/rounding.hpp
  • gecode/float/trace/delta.hpp
  • gecode/float/trace/trace-view.hpp
  • gecode/float/trace/traits.hpp
  • gecode/float/transcendental.hh
  • gecode/float/transcendental/exp-log.hpp
  • gecode/float/trigonometric.hh
  • gecode/float/trigonometric/asinacos.hpp
  • gecode/float/trigonometric/sincos.hpp
  • gecode/float/trigonometric/tanatan.hpp
  • gecode/float/val.hpp
  • gecode/float/var-imp.hpp
  • gecode/float/var-imp/delta.hpp
  • gecode/float/var-imp/float.cpp
  • gecode/float/var-imp/float.hpp
  • gecode/float/var/float.hpp
  • gecode/float/view.hpp
  • gecode/float/view/float.hpp
  • gecode/float/view/minus.hpp
  • gecode/float/view/offset.hpp
  • gecode/float/view/print.hpp
  • gecode/float/view/rel-test.hpp
  • gecode/float/view/scale.hpp
  • gecode/gist.hh
  • gecode/gist/drawingcursor.cpp
  • gecode/gist/drawingcursor.hh
  • gecode/gist/drawingcursor.hpp
  • gecode/gist/gecodelogo.cpp
  • gecode/gist/gecodelogo.hh
  • gecode/gist/gist.cpp
  • gecode/gist/gist.hpp
  • gecode/gist/layoutcursor.hh
  • gecode/gist/layoutcursor.hpp
  • gecode/gist/mainwindow.cpp
  • gecode/gist/mainwindow.hh
  • gecode/gist/node.cpp
  • gecode/gist/node.hh
  • gecode/gist/node.hpp
  • gecode/gist/nodecursor.hh
  • gecode/gist/nodecursor.hpp
  • gecode/gist/nodestats.cpp
  • gecode/gist/nodestats.hh
  • gecode/gist/nodevisitor.hh
  • gecode/gist/nodevisitor.hpp
  • gecode/gist/nodewidget.cpp
  • gecode/gist/nodewidget.hh
  • gecode/gist/preferences.cpp
  • gecode/gist/preferences.hh
  • gecode/gist/qtgist.cpp
  • gecode/gist/qtgist.hh
  • gecode/gist/spacenode.cpp
  • gecode/gist/spacenode.hh
  • gecode/gist/spacenode.hpp
  • gecode/gist/standalone-example/mygist.cpp
  • gecode/gist/stopbrancher.cpp
  • gecode/gist/stopbrancher.hh
  • gecode/gist/textoutput.cpp
  • gecode/gist/textoutput.hh
  • gecode/gist/treecanvas.cpp
  • gecode/gist/treecanvas.hh
  • gecode/gist/visualnode.cpp
  • gecode/gist/visualnode.hh
  • gecode/gist/visualnode.hpp
  • gecode/gist/zoomToFitIcon.hpp
  • gecode/instance.hh
  • gecode/instance/data.cpp
  • gecode/instance/eval.cpp
  • gecode/instance/eval.hpp
  • gecode/instance/impl.hpp
  • gecode/instance/reader.cpp
  • gecode/instance/resolve.cpp
  • gecode/instance/spec.cpp
  • gecode/int.hh
  • gecode/int/arithmetic.hh
  • gecode/int/arithmetic/abs.hpp
  • gecode/int/arithmetic/argmax.hpp
  • gecode/int/arithmetic/divides.hpp
  • gecode/int/arithmetic/divmod.hpp
  • gecode/int/arithmetic/gcd.hpp
  • gecode/int/arithmetic/max.hpp
  • gecode/int/arithmetic/mult.cpp
  • gecode/int/arithmetic/mult.hpp
  • gecode/int/arithmetic/nroot.hpp
  • gecode/int/arithmetic/open.hpp
  • gecode/int/arithmetic/pow-ops.hpp
  • gecode/int/arithmetic/pow.hpp
  • gecode/int/arithmetic/product-mod.hpp
  • gecode/int/arithmetic/product.hpp
  • gecode/int/array-traits.hpp
  • gecode/int/array.hpp
  • gecode/int/bin-packing.cpp
  • gecode/int/bin-packing.hh
  • gecode/int/bin-packing/conflict-graph.cpp
  • gecode/int/bin-packing/conflict-graph.hpp
  • gecode/int/bin-packing/propagate.cpp
  • gecode/int/bin-packing/propagate.hpp
  • gecode/int/bool.cpp
  • gecode/int/bool.hh
  • gecode/int/bool/base.hpp
  • gecode/int/bool/clause.hpp
  • gecode/int/bool/eq.hpp
  • gecode/int/bool/eqv.cpp
  • gecode/int/bool/eqv.hpp
  • gecode/int/bool/ite.hpp
  • gecode/int/bool/lq.hpp
  • gecode/int/bool/or.hpp
  • gecode/int/branch.hh
  • gecode/int/branch/action.hpp
  • gecode/int/branch/assign.hpp
  • gecode/int/branch/cbs.hpp
  • gecode/int/branch/chb.hpp
  • gecode/int/branch/merit.hpp
  • gecode/int/branch/ngl.hpp
  • gecode/int/branch/open.hpp
  • gecode/int/branch/traits.hpp
  • gecode/int/branch/val-commit.hpp
  • gecode/int/branch/val-sel-commit.cpp
  • gecode/int/branch/val-sel.hpp
  • gecode/int/branch/val.hpp
  • gecode/int/branch/var.hpp
  • gecode/int/branch/view-sel.cpp
  • gecode/int/branch/view-values.cpp
  • gecode/int/branch/view-values.hpp
  • gecode/int/channel.hh
  • gecode/int/channel/base.hpp
  • gecode/int/channel/dom.hpp
  • gecode/int/channel/link-multi.cpp
  • gecode/int/channel/link-multi.hpp
  • gecode/int/channel/link-single.cpp
  • gecode/int/channel/link-single.hpp
  • gecode/int/channel/val.hpp
  • gecode/int/circuit.cpp
  • gecode/int/circuit.hh
  • gecode/int/circuit/base.hpp
  • gecode/int/circuit/dom.hpp
  • gecode/int/circuit/val.hpp
  • gecode/int/count.hh
  • gecode/int/count/int-base.hpp
  • gecode/int/count/int-eq.hpp
  • gecode/int/count/int-gq.hpp
  • gecode/int/count/int-lq.hpp
  • gecode/int/count/rel.hpp
  • gecode/int/count/view-base.hpp
  • gecode/int/count/view-eq.hpp
  • gecode/int/count/view-gq.hpp
  • gecode/int/count/view-lq.hpp
  • gecode/int/cumulative.cpp
  • gecode/int/cumulative.hh
  • gecode/int/cumulative/edge-finding.hpp
  • gecode/int/cumulative/knapsack-overload.hpp
  • gecode/int/cumulative/limits.hpp
  • gecode/int/cumulative/man-prop.hpp
  • gecode/int/cumulative/opt-prop.hpp
  • gecode/int/cumulative/overload.hpp
  • gecode/int/cumulative/post.hpp
  • gecode/int/cumulative/subsumption.hpp
  • gecode/int/cumulative/task-view.hpp
  • gecode/int/cumulative/task.hpp
  • gecode/int/cumulative/time-tabling.hpp
  • gecode/int/cumulative/tree.hpp
  • gecode/int/cumulatives.cpp
  • gecode/int/cumulatives.hh
  • gecode/int/cumulatives/val.hpp
  • gecode/int/distinct.hh
  • gecode/int/distinct/bnd.hpp
  • gecode/int/distinct/cbs.cpp
  • gecode/int/distinct/cbs.hpp
  • gecode/int/distinct/dom-ctrl.hpp
  • gecode/int/distinct/dom.hpp
  • gecode/int/distinct/eqite.cpp
  • gecode/int/distinct/eqite.hpp
  • gecode/int/distinct/graph.hpp
  • gecode/int/distinct/open.hpp
  • gecode/int/distinct/ter-dom.hpp
  • gecode/int/distinct/val.hpp
  • gecode/int/div.hh
  • gecode/int/div.hpp
  • gecode/int/dom.cpp
  • gecode/int/dom.hh
  • gecode/int/dom/range.hpp
  • gecode/int/dom/set.hpp
  • gecode/int/element.cpp
  • gecode/int/element.hh
  • gecode/int/element/int.hpp
  • gecode/int/element/pair.cpp
  • gecode/int/element/pair.hpp
  • gecode/int/element/view.hpp
  • gecode/int/exception.cpp
  • gecode/int/exception.hpp
  • gecode/int/exec.hh
  • gecode/int/exec/when.cpp
  • gecode/int/exec/when.hpp
  • gecode/int/extensional-tuple-set.cpp
  • gecode/int/extensional.hh
  • gecode/int/extensional/bit-set.hpp
  • gecode/int/extensional/compact.hpp
  • gecode/int/extensional/dfa.cpp
  • gecode/int/extensional/dfa.hpp
  • gecode/int/extensional/layered-graph.hpp
  • gecode/int/extensional/open.hpp
  • gecode/int/extensional/tiny-bit-set.hpp
  • gecode/int/extensional/tuple-set.cpp
  • gecode/int/extensional/tuple-set.hpp
  • gecode/int/gcc.cpp
  • gecode/int/gcc.hh
  • gecode/int/gcc/bnd-sup.hpp
  • gecode/int/gcc/bnd.hpp
  • gecode/int/gcc/dom-sup.hpp
  • gecode/int/gcc/dom.hpp
  • gecode/int/gcc/post.hpp
  • gecode/int/gcc/val.hpp
  • gecode/int/gcc/view.hpp
  • gecode/int/growable-int-set.hh
  • gecode/int/growable-int-set.hpp
  • gecode/int/idx-view.hh
  • gecode/int/idx-view.hpp
  • gecode/int/int-set-1.hpp
  • gecode/int/int-set.cpp
  • gecode/int/inter-distance.cpp
  • gecode/int/inter-distance.hh
  • gecode/int/ldsb.cpp
  • gecode/int/ldsb.hh
  • gecode/int/ldsb/brancher.hpp
  • gecode/int/ldsb/sym-imp.cpp
  • gecode/int/ldsb/sym-imp.hpp
  • gecode/int/ldsb/sym-obj.cpp
  • gecode/int/limits.hpp
  • gecode/int/linear.hh
  • gecode/int/linear/bool-int.hpp
  • gecode/int/linear/bool-post.cpp
  • gecode/int/linear/bool-scale.hpp
  • gecode/int/linear/bool-view.hpp
  • gecode/int/linear/int-bin.hpp
  • gecode/int/linear/int-dom.hpp
  • gecode/int/linear/int-nary.hpp
  • gecode/int/linear/int-noview.hpp
  • gecode/int/linear/int-post.cpp
  • gecode/int/linear/int-ter.hpp
  • gecode/int/linear/post.hpp
  • gecode/int/member.hh
  • gecode/int/member/prop.hpp
  • gecode/int/member/re-prop.hpp
  • gecode/int/min-distance.cpp
  • gecode/int/min-distance.hh
  • gecode/int/min-distance.hpp
  • gecode/int/min-distance/prop.hpp
  • gecode/int/no-overlap.cpp
  • gecode/int/no-overlap.hh
  • gecode/int/no-overlap/base.hpp
  • gecode/int/no-overlap/box.hpp
  • gecode/int/no-overlap/dim.hpp
  • gecode/int/no-overlap/man.hpp
  • gecode/int/no-overlap/opt.hpp
  • gecode/int/nvalues.hh
  • gecode/int/nvalues/bool-base.hpp
  • gecode/int/nvalues/bool-eq.hpp
  • gecode/int/nvalues/bool-gq.hpp
  • gecode/int/nvalues/bool-lq.hpp
  • gecode/int/nvalues/graph.hpp
  • gecode/int/nvalues/int-base.hpp
  • gecode/int/nvalues/int-eq.hpp
  • gecode/int/nvalues/int-gq.hpp
  • gecode/int/nvalues/int-lq.hpp
  • gecode/int/nvalues/range-event.hpp
  • gecode/int/nvalues/sym-bit-matrix.hpp
  • gecode/int/open-propagator.hpp
  • gecode/int/open-var-list.hpp
  • gecode/int/order.hh
  • gecode/int/order/propagate.cpp
  • gecode/int/order/propagate.hpp
  • gecode/int/precede.hh
  • gecode/int/precede/open.hpp
  • gecode/int/precede/single.hpp
  • gecode/int/propagator.hpp
  • gecode/int/reify.hpp
  • gecode/int/rel.cpp
  • gecode/int/rel.hh
  • gecode/int/rel/eq.hpp
  • gecode/int/rel/lex.hpp
  • gecode/int/rel/lq-le.hpp
  • gecode/int/rel/nq.hpp
  • gecode/int/rel/open.hpp
  • gecode/int/relax.cpp
  • gecode/int/sequence.cpp
  • gecode/int/sequence.hh
  • gecode/int/sequence/int.hpp
  • gecode/int/sequence/open.hpp
  • gecode/int/sequence/set-op.hpp
  • gecode/int/sequence/view.hpp
  • gecode/int/sequence/violations.hpp
  • gecode/int/sorted.hh
  • gecode/int/sorted/matching.hpp
  • gecode/int/sorted/narrowing.hpp
  • gecode/int/sorted/order.hpp
  • gecode/int/sorted/propagate.hpp
  • gecode/int/sorted/sortsup.hpp
  • gecode/int/support-values.hh
  • gecode/int/support-values.hpp
  • gecode/int/task.hh
  • gecode/int/task/array.hpp
  • gecode/int/task/event.hpp
  • gecode/int/task/fwd-to-bwd.hpp
  • gecode/int/task/iter.hpp
  • gecode/int/task/man-to-opt.hpp
  • gecode/int/task/prop.hpp
  • gecode/int/task/purge.hpp
  • gecode/int/task/sort.hpp
  • gecode/int/task/tree.hpp
  • gecode/int/trace/bool-delta.hpp
  • gecode/int/trace/bool-trace-view.hpp
  • gecode/int/trace/int-trace-view.hpp
  • gecode/int/trace/traits.hpp
  • gecode/int/unary.cpp
  • gecode/int/unary.hh
  • gecode/int/unary/detectable.hpp
  • gecode/int/unary/edge-finding.hpp
  • gecode/int/unary/man-prop.hpp
  • gecode/int/unary/not-first-not-last.hpp
  • gecode/int/unary/opt-prop.hpp
  • gecode/int/unary/overload.hpp
  • gecode/int/unary/post.hpp
  • gecode/int/unary/subsumption.hpp
  • gecode/int/unary/task-view.hpp
  • gecode/int/unary/task.hpp
  • gecode/int/unary/time-tabling.hpp
  • gecode/int/unary/tree.hpp
  • gecode/int/unshare.cpp
  • gecode/int/val-set.hh
  • gecode/int/val-set.hpp
  • gecode/int/var-imp.hpp
  • gecode/int/var-imp/bool.cpp
  • gecode/int/var-imp/bool.hpp
  • gecode/int/var-imp/delta.hpp
  • gecode/int/var-imp/int.cpp
  • gecode/int/var-imp/int.hpp
  • gecode/int/var/bool.hpp
  • gecode/int/var/int.hpp
  • gecode/int/view-val-graph.hh
  • gecode/int/view-val-graph/bi-link.hpp
  • gecode/int/view-val-graph/comb-ptr-flag.hpp
  • gecode/int/view-val-graph/edge.hpp
  • gecode/int/view-val-graph/graph.hpp
  • gecode/int/view-val-graph/iter-prune-val.hpp
  • gecode/int/view-val-graph/node.hpp
  • gecode/int/view.hpp
  • gecode/int/view/bool-test.hpp
  • gecode/int/view/bool.hpp
  • gecode/int/view/cached.hpp
  • gecode/int/view/constint.hpp
  • gecode/int/view/int.hpp
  • gecode/int/view/iter.hpp
  • gecode/int/view/minus.hpp
  • gecode/int/view/neg-bool.hpp
  • gecode/int/view/offset.hpp
  • gecode/int/view/print.hpp
  • gecode/int/view/rel-test.hpp
  • gecode/int/view/scale.hpp
  • gecode/int/view/zero.hpp
  • gecode/iter.hh
  • gecode/iter/ranges-add.hpp
  • gecode/iter/ranges-append.hpp
  • gecode/iter/ranges-array.hpp
  • gecode/iter/ranges-cache.hpp
  • gecode/iter/ranges-compl.hpp
  • gecode/iter/ranges-diff.hpp
  • gecode/iter/ranges-empty.hpp
  • gecode/iter/ranges-inter.hpp
  • gecode/iter/ranges-list.hpp
  • gecode/iter/ranges-map.hpp
  • gecode/iter/ranges-minmax.hpp
  • gecode/iter/ranges-minus.hpp
  • gecode/iter/ranges-negative.hpp
  • gecode/iter/ranges-offset.hpp
  • gecode/iter/ranges-operations.hpp
  • gecode/iter/ranges-positive.hpp
  • gecode/iter/ranges-rangelist.hpp
  • gecode/iter/ranges-scale.hpp
  • gecode/iter/ranges-singleton-append.hpp
  • gecode/iter/ranges-singleton.hpp
  • gecode/iter/ranges-size.hpp
  • gecode/iter/ranges-union.hpp
  • gecode/iter/ranges-values.hpp
  • gecode/iter/values-array.hpp
  • gecode/iter/values-bitset.hpp
  • gecode/iter/values-bitsetoffset.hpp
  • gecode/iter/values-inter.hpp
  • gecode/iter/values-list.hpp
  • gecode/iter/values-map.hpp
  • gecode/iter/values-minus.hpp
  • gecode/iter/values-negative.hpp
  • gecode/iter/values-offset.hpp
  • gecode/iter/values-positive.hpp
  • gecode/iter/values-ranges.hpp
  • gecode/iter/values-singleton.hpp
  • gecode/iter/values-union.hpp
  • gecode/iter/values-unique.hpp
  • gecode/kernel.hh
  • gecode/kernel/archive.cpp
  • gecode/kernel/archive.hpp
  • gecode/kernel/branch/action.cpp
  • gecode/kernel/branch/action.hpp
  • gecode/kernel/branch/afc.hpp
  • gecode/kernel/branch/chb.cpp
  • gecode/kernel/branch/chb.hpp
  • gecode/kernel/branch/filter.hpp
  • gecode/kernel/branch/function.cpp
  • gecode/kernel/branch/merit.hpp
  • gecode/kernel/branch/print.hpp
  • gecode/kernel/branch/val-commit.hpp
  • gecode/kernel/branch/val-sel-commit.hpp
  • gecode/kernel/branch/val-sel.hpp
  • gecode/kernel/branch/val.hpp
  • gecode/kernel/branch/var.hpp
  • gecode/kernel/branch/view-sel.hpp
  • gecode/kernel/branch/view-val.hpp
  • gecode/kernel/branch/view.hpp
  • gecode/kernel/core.cpp
  • gecode/kernel/core.hpp
  • gecode/kernel/data/array.cpp
  • gecode/kernel/data/array.hpp
  • gecode/kernel/data/rnd.hpp
  • gecode/kernel/data/shared-array.hpp
  • gecode/kernel/data/shared-data.hpp
  • gecode/kernel/gpi.cpp
  • gecode/kernel/gpi.hpp
  • gecode/kernel/memory/allocators.hpp
  • gecode/kernel/memory/config.hpp
  • gecode/kernel/memory/manager.cpp
  • gecode/kernel/memory/manager.hpp
  • gecode/kernel/memory/region.cpp
  • gecode/kernel/memory/region.hpp
  • gecode/kernel/propagator/advisor.hpp
  • gecode/kernel/propagator/pattern.hpp
  • gecode/kernel/propagator/subscribed.hpp
  • gecode/kernel/propagator/wait.hpp
  • gecode/kernel/range-list.hpp
  • gecode/kernel/shared-object.hpp
  • gecode/kernel/shared-space-data.hpp
  • gecode/kernel/trace/filter.cpp
  • gecode/kernel/trace/filter.hpp
  • gecode/kernel/trace/recorder.hpp
  • gecode/kernel/trace/tracer.hpp
  • gecode/kernel/var-imp.hpp
  • gecode/kernel/var-type.hpp
  • gecode/kernel/var.hpp
  • gecode/kernel/view.hpp
  • gecode/minimodel.hh
  • gecode/minimodel/bool-expr.cpp
  • gecode/minimodel/bool-expr.hpp
  • gecode/minimodel/dom.cpp
  • gecode/minimodel/exception.cpp
  • gecode/minimodel/exception.hpp
  • gecode/minimodel/float-arith.cpp
  • gecode/minimodel/float-expr.cpp
  • gecode/minimodel/float-expr.hpp
  • gecode/minimodel/float-rel.cpp
  • gecode/minimodel/int-arith.cpp
  • gecode/minimodel/int-expr.cpp
  • gecode/minimodel/int-expr.hpp
  • gecode/minimodel/ipl.hpp
  • gecode/minimodel/matrix.hpp
  • gecode/minimodel/reg.cpp
  • gecode/minimodel/set-expr.cpp
  • gecode/minimodel/set-expr.hpp
  • gecode/minimodel/set-rel.hpp
  • gecode/search.hh
  • gecode/search/astar.cpp
  • gecode/search/astar.hpp
  • gecode/search/bab.cpp
  • gecode/search/bab.hpp
  • gecode/search/base.hpp
  • gecode/search/build.hpp
  • gecode/search/cabs.cpp
  • gecode/search/cabs.hpp
  • gecode/search/cpprofiler/connector.hpp
  • gecode/search/cpprofiler/message.hpp
  • gecode/search/cpprofiler/tracer.cpp
  • gecode/search/cutoff.cpp
  • gecode/search/cutoff.hpp
  • gecode/search/dfs.cpp
  • gecode/search/dfs.hpp
  • gecode/search/engine.cpp
  • gecode/search/exception.cpp
  • gecode/search/exception.hpp
  • gecode/search/heuristic.hh
  • gecode/search/lds.cpp
  • gecode/search/lds.hpp
  • gecode/search/nogoods.cpp
  • gecode/search/nogoods.hh
  • gecode/search/nogoods.hpp
  • gecode/search/options.cpp
  • gecode/search/options.hpp
  • gecode/search/par/bab.hh
  • gecode/search/par/bab.hpp
  • gecode/search/par/dfs.hh
  • gecode/search/par/dfs.hpp
  • gecode/search/par/engine.hh
  • gecode/search/par/engine.hpp
  • gecode/search/par/frontier.cpp
  • gecode/search/par/frontier.hh
  • gecode/search/par/path.hh
  • gecode/search/par/path.hpp
  • gecode/search/par/pbs.cpp
  • gecode/search/par/pbs.hh
  • gecode/search/par/pbs.hpp
  • gecode/search/pbs.cpp
  • gecode/search/pbs.hpp
  • gecode/search/rbs.cpp
  • gecode/search/rbs.hpp
  • gecode/search/relax.hh
  • gecode/search/sebs.hpp
  • gecode/search/seq/astar.hh
  • gecode/search/seq/bab.hh
  • gecode/search/seq/bab.hpp
  • gecode/search/seq/cabs.hh
  • gecode/search/seq/choice-expansion.hh
  • gecode/search/seq/dead.cpp
  • gecode/search/seq/dead.hh
  • gecode/search/seq/dfs.hh
  • gecode/search/seq/dfs.hpp
  • gecode/search/seq/lds.hh
  • gecode/search/seq/lds.hpp
  • gecode/search/seq/path.hh
  • gecode/search/seq/path.hpp
  • gecode/search/seq/pbs.cpp
  • gecode/search/seq/pbs.hh
  • gecode/search/seq/pbs.hpp
  • gecode/search/seq/rbs.cpp
  • gecode/search/seq/rbs.hh
  • gecode/search/seq/rbs.hpp
  • gecode/search/statistics.hpp
  • gecode/search/stop.cpp
  • gecode/search/stop.hpp
  • gecode/search/support.hh
  • gecode/search/trace-recorder.hpp
  • gecode/search/tracer.cpp
  • gecode/search/tracer.hpp
  • gecode/search/traits.hpp
  • gecode/search/worker-control.cpp
  • gecode/search/worker-control.hh
  • gecode/search/worker.hh
  • gecode/set.hh
  • gecode/set/array-traits.hpp
  • gecode/set/branch.hh
  • gecode/set/branch/action.hpp
  • gecode/set/branch/assign.hpp
  • gecode/set/branch/chb.hpp
  • gecode/set/branch/merit.hpp
  • gecode/set/branch/ngl.cpp
  • gecode/set/branch/ngl.hpp
  • gecode/set/branch/traits.hpp
  • gecode/set/branch/val-commit.hpp
  • gecode/set/branch/val-sel-commit.cpp
  • gecode/set/branch/val-sel.hpp
  • gecode/set/branch/val.hpp
  • gecode/set/branch/var.hpp
  • gecode/set/branch/view-sel.cpp
  • gecode/set/channel.hh
  • gecode/set/channel/bool.hpp
  • gecode/set/channel/int.hpp
  • gecode/set/channel/set.hpp
  • gecode/set/channel/sorted.hpp
  • gecode/set/convex.hh
  • gecode/set/convex/conv.cpp
  • gecode/set/convex/conv.hpp
  • gecode/set/convex/hull.cpp
  • gecode/set/convex/hull.hpp
  • gecode/set/distinct.hh
  • gecode/set/distinct/atmostOne.cpp
  • gecode/set/distinct/atmostOne.hpp
  • gecode/set/element.cpp
  • gecode/set/element.hh
  • gecode/set/element/disjoint.hpp
  • gecode/set/element/inter.hpp
  • gecode/set/element/union.hpp
  • gecode/set/element/unionConst.hpp
  • gecode/set/exception.cpp
  • gecode/set/exception.hpp
  • gecode/set/int.cpp
  • gecode/set/int.hh
  • gecode/set/int/card.hpp
  • gecode/set/int/minmax.hpp
  • gecode/set/int/weights.hpp
  • gecode/set/ldsb.cpp
  • gecode/set/ldsb.hh
  • gecode/set/ldsb/brancher.hpp
  • gecode/set/ldsb/sym-imp.cpp
  • gecode/set/limits.hpp
  • gecode/set/precede.hh
  • gecode/set/precede/single.hpp
  • gecode/set/rel-op.hh
  • gecode/set/rel-op/common.hpp
  • gecode/set/rel-op/inter.hpp
  • gecode/set/rel-op/partition.hpp
  • gecode/set/rel-op/post-compl-cvc.cpp
  • gecode/set/rel-op/post-compl-cvv.cpp
  • gecode/set/rel-op/post-compl-vvc.cpp
  • gecode/set/rel-op/post-compl.cpp
  • gecode/set/rel-op/post-nocompl-cvc.cpp
  • gecode/set/rel-op/post-nocompl-cvv.cpp
  • gecode/set/rel-op/post-nocompl-vvc.cpp
  • gecode/set/rel-op/post-nocompl.cpp
  • gecode/set/rel-op/post.hpp
  • gecode/set/rel-op/subofunion.hpp
  • gecode/set/rel-op/superofinter.hpp
  • gecode/set/rel-op/union.hpp
  • gecode/set/rel.cpp
  • gecode/set/rel.hh
  • gecode/set/rel/common.hpp
  • gecode/set/rel/eq.hpp
  • gecode/set/rel/lq.hpp
  • gecode/set/rel/nosubset.hpp
  • gecode/set/rel/nq.hpp
  • gecode/set/rel/re-eq.hpp
  • gecode/set/rel/re-lq.hpp
  • gecode/set/rel/re-subset.hpp
  • gecode/set/rel/subset.hpp
  • gecode/set/relax.cpp
  • gecode/set/sequence.hh
  • gecode/set/sequence/common.hpp
  • gecode/set/sequence/seq-u.cpp
  • gecode/set/sequence/seq-u.hpp
  • gecode/set/sequence/seq.cpp
  • gecode/set/sequence/seq.hpp
  • gecode/set/trace/delta.hpp
  • gecode/set/trace/trace-view.hpp
  • gecode/set/trace/traits.hpp
  • gecode/set/var-imp.hpp
  • gecode/set/var-imp/delta.hpp
  • gecode/set/var-imp/integerset.cpp
  • gecode/set/var-imp/integerset.hpp
  • gecode/set/var-imp/iter.hpp
  • gecode/set/var-imp/set.cpp
  • gecode/set/var-imp/set.hpp
  • gecode/set/var/set.hpp
  • gecode/set/view.hpp
  • gecode/set/view/cached.hpp
  • gecode/set/view/complement.hpp
  • gecode/set/view/const.hpp
  • gecode/set/view/print.hpp
  • gecode/set/view/set.hpp
  • gecode/set/view/singleton.hpp
  • gecode/support/allocator.cpp
  • gecode/support/allocator.hpp
  • gecode/support/bitset-base.hpp
  • gecode/support/bitset-offset.hpp
  • gecode/support/bitset.hpp
  • gecode/support/block-allocator.hpp
  • gecode/support/dynamic-array.hpp
  • gecode/support/dynamic-queue.hpp
  • gecode/support/dynamic-stack.hpp
  • gecode/support/exception.cpp
  • gecode/support/exception.hpp
  • gecode/support/failpoint.cpp
  • gecode/support/failpoint.hpp
  • gecode/support/hash.hpp
  • gecode/support/heap.hpp
  • gecode/support/hw-rnd.cpp
  • gecode/support/hw-rnd.hpp
  • gecode/support/int-type.hpp
  • gecode/support/marked-pointer.hpp
  • gecode/support/random.hpp
  • gecode/support/ref-count.hpp
  • gecode/support/run-jobs.hpp
  • gecode/support/sort.hpp
  • gecode/support/static-stack.hpp
  • gecode/support/thread.hpp
  • gecode/support/thread/thread.cpp
  • gecode/support/thread/thread.hpp
  • gecode/support/timer.hpp
  • misc/genvarimp.py
  • test/afc.cpp
  • test/array.cpp
  • test/assign.cpp
  • test/assign.hh
  • test/assign/bool.cpp
  • test/assign/float.cpp
  • test/assign/int.cpp
  • test/assign/set.cpp
  • test/branch.cpp
  • test/branch.hh
  • test/branch/bool.cpp
  • test/branch/float.cpp
  • test/branch/int.cpp
  • test/branch/set.cpp
  • test/fault.cpp
  • test/flatzinc.cpp
  • test/flatzinc.hh
  • test/flatzinc/2dpacking.cpp
  • test/flatzinc/alpha.cpp
  • test/flatzinc/battleships1.cpp
  • test/flatzinc/battleships10.cpp
  • test/flatzinc/battleships2.cpp
  • test/flatzinc/battleships3.cpp
  • test/flatzinc/battleships4.cpp
  • test/flatzinc/battleships5.cpp
  • test/flatzinc/battleships7.cpp
  • test/flatzinc/battleships9.cpp
  • test/flatzinc/blackbox-dll.cpp
  • test/flatzinc/blackbox-exec.cpp
  • test/flatzinc/blackbox.cpp
  • test/flatzinc/blocksworld_instance_1.cpp
  • test/flatzinc/blocksworld_instance_2.cpp
  • test/flatzinc/bool_clause.cpp
  • test/flatzinc/branching.cpp
  • test/flatzinc/bug232.cpp
  • test/flatzinc/bug319.cpp
  • test/flatzinc/bugfix_r6746.cpp
  • test/flatzinc/bugfix_r7854.cpp
  • test/flatzinc/cumulatives.cpp
  • test/flatzinc/cumulatives_full_1.cpp
  • test/flatzinc/cumulatives_full_2.cpp
  • test/flatzinc/cumulatives_full_3.cpp
  • test/flatzinc/cumulatives_full_4.cpp
  • test/flatzinc/cumulatives_full_5.cpp
  • test/flatzinc/cumulatives_full_6.cpp
  • test/flatzinc/cumulatives_full_7.cpp
  • test/flatzinc/cumulatives_full_8.cpp
  • test/flatzinc/cutstock.cpp
  • test/flatzinc/empty_domain_1.cpp
  • test/flatzinc/empty_domain_2.cpp
  • test/flatzinc/empty_set_literal.cpp
  • test/flatzinc/eq20.cpp
  • test/flatzinc/factory_planning_instance.cpp
  • test/flatzinc/golomb.cpp
  • test/flatzinc/int_set_as_type1.cpp
  • test/flatzinc/int_set_as_type2.cpp
  • test/flatzinc/issue166.cpp
  • test/flatzinc/issue168.cpp
  • test/flatzinc/jobshop.cpp
  • test/flatzinc/jobshop2x2.cpp
  • test/flatzinc/knights.cpp
  • test/flatzinc/langford2.cpp
  • test/flatzinc/latin_squares_fd.cpp
  • test/flatzinc/magicsq_3.cpp
  • test/flatzinc/magicsq_4.cpp
  • test/flatzinc/magicsq_5.cpp
  • test/flatzinc/multidim_knapsack_simple.cpp
  • test/flatzinc/native-registry.cpp
  • test/flatzinc/no_warn_empty_domain.cpp
  • test/flatzinc/on_restart_complete.cpp
  • test/flatzinc/on_restart_last_val_bool.cpp
  • test/flatzinc/on_restart_last_val_float.cpp
  • test/flatzinc/on_restart_last_val_int.cpp
  • test/flatzinc/on_restart_last_val_set.cpp
  • test/flatzinc/on_restart_sol_bool.cpp
  • test/flatzinc/on_restart_sol_float.cpp
  • test/flatzinc/on_restart_sol_int.cpp
  • test/flatzinc/on_restart_sol_set.cpp
  • test/flatzinc/oss.cpp
  • test/flatzinc/output_test.cpp
  • test/flatzinc/packing.cpp
  • test/flatzinc/perfsq.cpp
  • test/flatzinc/perfsq2.cpp
  • test/flatzinc/photo.cpp
  • test/flatzinc/product_fd.cpp
  • test/flatzinc/product_lp.cpp
  • test/flatzinc/quasigroup_qg5.cpp
  • test/flatzinc/queen_cp2.cpp
  • test/flatzinc/queen_ip.cpp
  • test/flatzinc/queens4.cpp
  • test/flatzinc/radiation.cpp
  • test/flatzinc/random_branching.cpp
  • test/flatzinc/sat_arith1.cpp
  • test/flatzinc/sat_array_bool_and.cpp
  • test/flatzinc/sat_array_bool_or.cpp
  • test/flatzinc/sat_cmp_reif.cpp
  • test/flatzinc/sat_eq_reif.cpp
  • test/flatzinc/shared_array_element.cpp
  • test/flatzinc/simple_sat.cpp
  • test/flatzinc/singHoist2.cpp
  • test/flatzinc/steiner_triples.cpp
  • test/flatzinc/subtyping.cpp
  • test/flatzinc/sudoku.cpp
  • test/flatzinc/template_design.cpp
  • test/flatzinc/tenpenki_1.cpp
  • test/flatzinc/tenpenki_2.cpp
  • test/flatzinc/tenpenki_3.cpp
  • test/flatzinc/tenpenki_4.cpp
  • test/flatzinc/tenpenki_5.cpp
  • test/flatzinc/tenpenki_6.cpp
  • test/flatzinc/test_approx_bnb.cpp
  • test/flatzinc/test_array_just_right.cpp
  • test/flatzinc/test_assigned_var_bounds_bad.cpp
  • test/flatzinc/test_flatzinc_output_anns.cpp
  • test/flatzinc/test_fzn_arith.cpp
  • test/flatzinc/test_fzn_arrays.cpp
  • test/flatzinc/test_fzn_coercions.cpp
  • test/flatzinc/test_fzn_comparison.cpp
  • test/flatzinc/test_fzn_logic.cpp
  • test/flatzinc/test_fzn_sets.cpp
  • test/flatzinc/test_int_div.cpp
  • test/flatzinc/test_int_mod.cpp
  • test/flatzinc/test_int_ranges_as_values.cpp
  • test/flatzinc/test_seq_search.cpp
  • test/flatzinc/timetabling.cpp
  • test/flatzinc/trucking.cpp
  • test/flatzinc/warehouses.cpp
  • test/flatzinc/warehouses_small.cpp
  • test/flatzinc/wolf_goat_cabbage.cpp
  • test/flatzinc/zebra.cpp
  • test/float.cpp
  • test/float.hh
  • test/float.hpp
  • test/float/arithmetic.cpp
  • test/float/basic.cpp
  • test/float/channel.cpp
  • test/float/dom.cpp
  • test/float/interval.cpp
  • test/float/linear.cpp
  • test/float/mm-lin.cpp
  • test/float/rel.cpp
  • test/float/transcendental.cpp
  • test/float/trigonometric.cpp
  • test/groups.cpp
  • test/instance.cpp
  • test/int.cpp
  • test/int.hh
  • test/int.hpp
  • test/int/arithmetic.cpp
  • test/int/basic.cpp
  • test/int/bin-packing.cpp
  • test/int/bool.cpp
  • test/int/channel.cpp
  • test/int/circuit.cpp
  • test/int/count.cpp
  • test/int/cumulative.cpp
  • test/int/cumulatives.cpp
  • test/int/distinct.cpp
  • test/int/dom.cpp
  • test/int/element.cpp
  • test/int/exec.cpp
  • test/int/extensional.cpp
  • test/int/gcc.cpp
  • test/int/inter-distance.cpp
  • test/int/linear.cpp
  • test/int/member.cpp
  • test/int/min-distance.cpp
  • test/int/mm-arithmetic.cpp
  • test/int/mm-bool.cpp
  • test/int/mm-count.cpp
  • test/int/mm-lin.cpp
  • test/int/mm-rel.cpp
  • test/int/no-overlap.cpp
  • test/int/nvalues.cpp
  • test/int/open-var-list.cpp
  • test/int/order.cpp
  • test/int/precede.cpp
  • test/int/rel.cpp
  • test/int/sequence.cpp
  • test/int/sorted.cpp
  • test/int/unary.cpp
  • test/int/unshare.cpp
  • test/ldsb.cpp
  • test/nogoods.cpp
  • test/package/allocator/main.cpp
  • test/public-float-smoke.cpp
  • test/public-int-smoke.cpp
  • test/public-runner-smoke.cpp
  • test/public-set-smoke.cpp
  • test/random.cpp
  • test/region.cpp
  • test/search.cpp
  • test/set.cpp
  • test/set.hh
  • test/set.hpp
  • test/set/channel.cpp
  • test/set/construct.cpp
  • test/set/convex.cpp
  • test/set/distinct.cpp
  • test/set/dom.cpp
  • test/set/element.cpp
  • test/set/exec.cpp
  • test/set/int.cpp
  • test/set/mm-set.cpp
  • test/set/precede.cpp
  • test/set/rel-op-const.cpp
  • test/set/rel-op.cpp
  • test/set/rel.cpp
  • test/set/sequence.cpp
  • test/test.cpp
  • test/test.hh
  • test/test.hpp

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@zayenz
zayenz force-pushed the feature/breaking-7 branch from 0658682 to c0087f6 Compare November 26, 2026 19:14
@zayenz
zayenz force-pushed the feature/breaking-7 branch 5 times, most recently from 970238a to 082e7d7 Compare November 27, 2026 20:31
@zayenz
zayenz marked this pull request as ready for review November 30, 2026 13:08
@zayenz
zayenz force-pushed the feature/breaking-7 branch from 082e7d7 to 8bc440d Compare November 30, 2026 13:24
@zayenz
zayenz force-pushed the feature/breaking-7 branch 4 times, most recently from 2374484 to 2ed8b34 Compare December 1, 2026 14:14
@zayenz
zayenz force-pushed the feature/breaking-7 branch from 2ed8b34 to c0b49fa Compare December 1, 2026 16:11
Base automatically changed from feature/breaking-7-10-scoped-enums to main December 1, 2026 16:31
Empty parameter lists are now (), and modernize-redundant-void-arg keeps them
so. Behaviour and casts to void are unchanged. clang-tidy covers what this
platform compiles; a byte-level pass covers the rest, and generated files
follow their inputs.

Reproduce this commit by running the following at the root of a Git tree of
the parent commit:

set -euo pipefail

llvm=/opt/homebrew/opt/llvm@22/bin
export PATH="$llvm:/opt/homebrew/opt/bison/bin:/opt/homebrew/opt/flex/bin:$PATH"
export CLANG_FORMAT="$llvm/clang-format" CLANG_TIDY="$llvm/clang-tidy"
root=$(pwd -P)
build=build/void-args

rm -rf "$build"
cmake -S . -B "$build" -G Ninja -DCMAKE_BUILD_TYPE=Debug \
  -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DGECODE_ENABLE_EXPERIMENTAL=ON \
  -DGECODE_ENABLE_CBS=ON -DGECODE_ENABLE_CPPROFILER=ON \
  -DGECODE_ENABLE_FAULT_INJECTION=ON -DGECODE_ENABLE_AUDIT=ON \
  -DGECODE_ENABLE_GIST=ON -DGECODE_ENABLE_QT=ON

run-clang-tidy -clang-tidy-binary "$CLANG_TIDY" -p "$build" -j 10 -quiet \
  -checks='-*,modernize-redundant-void-arg' -warnings-as-errors='-*' \
  -extra-arg=-UNDEBUG -fix \
  -header-filter "$root/(gecode|test|examples|tools)/" \
  -exclude-header-filter '/gecode/flatzinc/(parser\.tab\.(cpp|hpp)|lexer\.yy\.cpp)$' \
  -source-filter "^$root/(?!gecode/flatzinc/(parser\.tab\.cpp|lexer\.yy\.cpp)$)(gecode|test|examples|tools)/" \
  > "$build/clang-tidy.log" 2>&1

python3 - <<'PY'
import pathlib
import re

code = {".hpp", ".cpp", ".hh", ".yxx", ".lxx"}
generated = {"parser.tab.cpp", "parser.tab.hpp", "lexer.yy.cpp"}
files = [path for top in ("gecode", "test", "examples", "tools")
         for path in pathlib.Path(top).rglob("*")
         if path.suffix in code and path.name not in generated
         and "third-party" not in path.parts]
files += [*pathlib.Path(".github/ci").glob("*.sh"), *pathlib.Path(".github/ci").glob("*.ps1"),
          pathlib.Path("misc/genvarimp.py")]
before = re.compile(rb"[\w)\]}>+\-*/=!<&|^~%][ \t]*$")
keyword = re.compile(rb"\b(?:return|else|do|sizeof|alignof|typeid|decltype|noexcept)[ \t]*$")
gap = re.compile(rb"(?:\s+|//[^\n]*\n|/\*.*?\*/)*", re.S)
after = re.compile(rb"[;{:=,)>&#]|->|(?:const|volatile|noexcept|override|final|throw|try)\b|$")

def replace(match):
    text = match.string
    head = text[max(match.start() - 40, 0):match.start()]
    tail = gap.match(text, match.end()).end()
    is_list = before.search(head) and not keyword.search(head) and after.match(text, tail)
    return b"()" if is_list else match[0]

for path in sorted(files):
    source = path.read_bytes()
    result = re.sub(rb"\(void\)", replace, source)
    if result != source:
        path.write_bytes(result)
PY

python3 - <<'PY'
import pathlib

def replace(name, old, new):
    path = pathlib.Path(name)
    text = path.read_text()
    assert text.count(old) == 1, old
    path.write_text(text.replace(old, new))

replace(".clang-tidy", "  modernize-deprecated-headers,\n",
        "  modernize-deprecated-headers,\n  modernize-redundant-void-arg,\n")
replace("docs/code-style.md", "## Checking changes\n", """\

An empty parameter list is `()`, also in function pointer types and
`std::function` signatures. `(void)` is a C spelling and stays only in C
sources, where it means something different.
`modernize-redundant-void-arg` enforces the rule. A cast to `void` that discards
a value, such as `(void)new (p) T()`, is a different construct and stays.

`forceinline` stays lowercase, although it is a macro, so that it reads like
`inline`.

""")
replace("docs/breaking-7.md", "- Revisit the `forceinline` portability macro and obsolete `(void)` parameter lists.\n", "")
replace("docs/breaking-7.md", "  compatibility aliases; see `code-style.md`.\n", """\
  compatibility aliases; see `code-style.md`.
- Empty parameter lists are `()`, and `forceinline` keeps its lowercase name;
  see `code-style.md`.
""")
PY

cmake --build "$build" --target regenerate
uv run misc/check.py format

Zdev-Change-Id: Z9b69e8fd20237843076a34a448f17e293c9f0ebb980e71dbe776ea78776d21f8
@zayenz
zayenz force-pushed the feature/breaking-7 branch from c0b49fa to fe46b74 Compare December 1, 2026 16:31
Enable the bugprone, concurrency, misc, modernize, performance, portability,
and readability groups as a whole, excluding each check that still reports
something, so later commits either remove an exclusion together with its
fixes or keep it as a decision. This commit removes the bugprone and misc
exclusions that fit:

- bugprone-incorrect-roundings: the TSP distances round with llround, since
  adding 0.5 before truncating is wrong for values just below a half.
- bugprone-unhandled-self-assignment: NaryInter and NaryUnion dropped their
  free list when assigned to themselves. TaskArray's copy members only copied
  their fields and are now defaulted.
- misc-unconventional-assign-operator: assignment operators return T& to
  *this; those returning a const reference or a converted base result change.
- bugprone-crtp-constructor-accessibility: SparseTupleState and BlockClient
  can only be constructed by the class they were written for.
- misc-override-with-different-visibility: SteelMillBranch inherited from
  Brancher privately by accident.
- misc-redundant-expression: the variable header generator wrote x ^ x into
  the modification event tables and now writes 0.
- misc-misplaced-const: const Tuple made the pointer const, not the tuple.
- misc-anonymous-namespace-in-header: Cumulatives uses std::less instead of a
  local class; the example instance files keep theirs, since one example
  includes each.
- bugprone-exception-escape, without main and the move members: the three
  remaining reports are marked as false positives.
- bugprone-reserved-identifier allows _GNU_SOURCE, which the blackbox backend
  must define for glibc. bugprone-empty-catch accepts a block whose comment
  says the exception is expected or ignored. bugprone-parent-virtual-call
  marks the deliberate grandparent calls in set LDSB.
- bugprone-nondeterministic-pointer-iteration-order,
  bugprone-bitwise-pointer-cast (std::copy_n for region heap blocks),
  bugprone-suspicious-string-compare, bugprone-assignment-in-if-condition,
  and misc-definitions-in-headers need small local fixes.

The integer literal actions in lexer.lxx move off the rule line, which
readability-misleading-indentation reported in the generated lexer.
Remove the readability exclusions that fit, with their fixes:
else-after-return, simplify-boolean-expr without De Morgan rewrites,
inconsistent-declaration-parameter-name (with the Doxygen parameter
references), container-size-empty, container-contains, redundant-casting,
use-concise-preprocessor-directives, static-accessed-through-instance,
redundant-member-init, redundant-parentheses, redundant-string-init,
const-return-type, avoid-const-params-in-decls, container-data-pointer,
redundant-control-flow, uppercase-literal-suffix, qualified-auto,
redundant-smartptr-get, use-std-min-max, avoid-return-with-void-value,
inconsistent-ifelse-braces, redundant-access-specifiers,
static-definition-in-anonymous-namespace, and suspicious-call-argument.

Slice's const and non-const conversions had the same body, so one const
conversion replaces each pair. A dead branch in the Gist tree builder goes.
The one suspicious-call-argument report is a symmetric call.
Remove the modernize exclusions that fit, with their fixes: loop-convert,
use-using, type-traits, make-unique, make-shared, use-emplace,
raw-string-literal, use-starts-ends-with, use-integer-sign-comparison,
use-ranges, use-transparent-functors, min-max-use-initializer-list, and
use-constraints. Also enable readability-redundant-typename and
readability-non-const-parameter, which belong with these rewrites.

The use-using fix-it drops const from aliases such as const_iterator, so
each alias was compared with its typedef. The cpprofiler base name check
compares against npos, which is what its cast to size_t meant. The
cumulatives test sorts by position through a projection, since
std::ranges::sort needs more than Event's operator<. The variable header
generator skips identical modification event pairs and writes the clone list
loop as a range-based loop. Special members that the earlier assignment and
initializer fixes made trivial are now defaulted.
Enable modernize-concat-nested-namespaces, and generate the same form. Shallower indentation lets clang-format repack the tables in the MiniModel tests.
Enable the clang-analyzer cplusplus, deadcode, nullability, optin, security,
unix, and valist groups, except the checks that only produce false positives
here, and remove the dead stores they find, including an unused search timer
in Gist. Enable these checks from other groups, with their fixes:

- hicpp-exception-baseclass: FlatZinc::Error, AST::TypeError, and ShapeError
  derive from std::exception and provide what(); tests that unwound with a
  thrown int use std::logic_error.
- google-default-arguments: a virtual function loses its default argument.
- cppcoreguidelines-rvalue-reference-param-not-moved: only the empty branch
  filter and print function take an rvalue without moving it.
- cppcoreguidelines-no-malloc: malloc stays inside the heap allocator.
- cert-err33-c with casts to void allowed: unused C library results are
  discarded explicitly.
- misc-use-internal-linkage for functions: file-local functions get internal
  linkage.
- modernize-avoid-c-style-cast and modernize-avoid-variadic-functions, which
  make the LDSB test helper a variadic template.
- cppcoreguidelines-misleading-capture-default-by-value,
  cppcoreguidelines-missing-std-forward, google-build-explicit-make-pair, and
  google-global-names-in-headers, which already pass.

BranchPlugin gets a virtual destructor. A full lint finds what the per-check
passes missed: declaration and definition names now agree, Cutoff::geometric
no longer calls its scale base in the definition (it passed them in the right
order all along), and the cumulative tests hold their usage table in a
vector, which removes the analyzer's report on an empty allocation.
Lint stops at the first failing stage, so the grammar actions and
parser.hh were reached only once everything else passed. yyerror keeps
external linkage, because the lexer calls it, and is now declared once
in parser.hh; the other parser functions become static. Token strings
come from strdup, so one helper holds the free the check has to allow.

The windows and none blackbox sources and the headers no linted source
includes get the same namespace form, which a lint here cannot reach.
Record why each excluded check does not fit, so that a later review starts
from the reasons, and which fix-its need care. Also restore
bugprone-unused-return-value, which the switch to whole groups excluded by
mistake, and note that MSVC rejects the unqualified ArgsType in the matrix
slice conversion.
@zayenz
zayenz force-pushed the feature/breaking-7 branch from fe46b74 to 8ea9ee1 Compare December 1, 2026 16:46
@zayenz
zayenz merged commit 1168b47 into main Dec 1, 2026
4 checks passed
@zayenz
zayenz deleted the feature/breaking-7 branch December 1, 2026 18:13
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