mirror of
https://github.com/Z3Prover/z3
synced 2026-02-10 02:50:55 +00:00
Modernize C++ patterns: range-based for loops and nullptr (#8167)
* Initial plan * Replace NULL with nullptr in test files Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Convert iterator loops to range-based for loops (part 1) Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Convert iterator loops to range-based for loops (part 2) Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> * Fix compilation errors in iterator loop conversions Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
This commit is contained in:
parent
15108bf36e
commit
b5492e5cf9
16 changed files with 84 additions and 140 deletions
|
|
@ -23,7 +23,7 @@ Revision History:
|
|||
|
||||
#define TEST(TEST_NAME, TEST_OUTCOME, NEG_TEST_OUTCOME) \
|
||||
do { \
|
||||
if (TEST_NAME != NULL) \
|
||||
if (TEST_NAME != nullptr) \
|
||||
{ \
|
||||
Z3_solver_push(ctx, s); \
|
||||
Z3_solver_assert(ctx, s, TEST_NAME); \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue