3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-08-03 20:53:30 +00:00
z3/src/tactic
davedets 4ee79af337
Disable "-Wnoctad-maybe-unsupported", add and fix "-Wdeprecated-copy-with-user-provided-copy". (#10332)
This is another PR towards the goal of getting Z3 to compile cleanly
when included via FetchContents into clang-tidy, which uses a pretty
strict set of warnings. (2 more flags after this!)

The first of these was -Wctad-maybe-unsupported. That has to do with
"class template argument deduction" -- the flag requires template
deduction guides to be explicitly provided if templated types are used
in situations that requires argument deduction. This fired for various
uses of templated types in the utils directory.

I decided that this should be a case of if it ain't broke, don't fix it,
and explicitly disabled the warning in the Z3 build (which will override
the setting if the flag is enabled in a larger build including Z3, like
clang).

-----

The second flag has to do with the C++ "rule of 3". Here is Google's AI
summary (inf_s_integer is a class in Z3 that triggered the warning):

_This warning means your inf_s_integer class defines a custom copy
assignment operator but lacks a user-defined copy constructor, which the
C++ standard deprecates to encourage the "Rule of Three". To fix this,
explicitly declare and = default the copy constructor in your class
definition._

_...example of how to fix..._

_This updates your code to modern C++ standards, cleanly silencing the
warning._

This seemed like a good standard to follow, and didn't require too many
changes, so I propose them.
2026-07-31 19:34:08 -07:00
..
aig Disable "-Wnoctad-maybe-unsupported", add and fix "-Wdeprecated-copy-with-user-provided-copy". (#10332) 2026-07-31 19:34:08 -07:00
arith Make implicit switch case fall-throughs explicit (#10284) 2026-07-29 09:05:42 -07:00
bv Issue 438 (#10085) 2026-07-12 13:35:57 -07:00
core Make implicit switch case fall-throughs explicit (#10284) 2026-07-29 09:05:42 -07:00
fd_solver Parallel tactic (#9824) (#9825) 2026-06-26 10:36:15 -06:00
fpa Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
portfolio Parallel tactic (#9824) (#9825) 2026-06-26 10:36:15 -06:00
sls Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
smtlogics Issue 438 (#10085) 2026-07-12 13:35:57 -07:00
ufbv Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
CMakeLists.txt
dependency_converter.cpp
dependency_converter.h
dependent_expr_state_tactic.h
goal.cpp Add initializer_list overloads and update all call sites 2026-02-16 01:27:08 +00:00
goal.h Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
goal_num_occurs.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
goal_num_occurs.h
goal_proof_converter.h
goal_shared_occs.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
goal_shared_occs.h
goal_util.cpp
goal_util.h
probe.cpp Standardize for-loop increments to prefix form (++i) (#8199) 2026-01-14 19:55:31 -08:00
probe.h
tactic.cpp Add global suppress_platform_verbose parameter (#10319) 2026-07-30 20:08:25 -07:00
tactic.h
tactic_exception.h
tactical.cpp Remove unnecessary semicolons (Attempt 2) (#10020) 2026-07-02 12:47:29 -07:00
tactical.h
user_propagator_base.h