3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-07-05 06:46:11 +00:00

Remove unnecessary semicolons (Attempt 2) (#10020)

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.

This is a second version of https://github.com/Z3Prover/z3/pull/9957. I
address @NikolajBjorner 's comments about not changing the semicolons
after macro invocations, because some editors work better with them
present. It now, to the best of my ability, only deletes semis:

* after the closing brace of namespace decl.
* after the closing brace of an extern "C" decl.
* after a function definition.

This PR is very large, but it consists entirely of deletions of
semicolons in these situations.

(If there was a way to update the previous PR, which had been closed,
and that is preferable, please let me know. I couldn't figure it out.)
This commit is contained in:
davedets 2026-07-02 12:47:29 -07:00 committed by GitHub
parent 69444de05b
commit 6ac3075022
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
429 changed files with 477 additions and 476 deletions

View file

@ -51,5 +51,5 @@ namespace mbp {
bool arith_project(model& model, app* var, expr_ref_vector& lits);
};
}

View file

@ -1500,4 +1500,4 @@ namespace mbp {
}
};
}

View file

@ -40,5 +40,5 @@ namespace mbp {
};
};
}

View file

@ -39,5 +39,5 @@ namespace mbp {
};
};
}

View file

@ -31,5 +31,5 @@ namespace mbp {
};
};
}

View file

@ -69,7 +69,7 @@ namespace mbp {
virtual bool solve(model& model, app_ref_vector& vars, expr_ref_vector& lits) { return false; }
virtual family_id get_family_id() { return null_family_id; }
virtual bool project(model& model, app_ref_vector& vars, expr_ref_vector& lits) { return false; };
virtual bool project(model& model, app_ref_vector& vars, expr_ref_vector& lits) { return false; }
/**
\brief project vars modulo model, return set of definitions for eliminated variables.

View file

@ -26,9 +26,9 @@ class mbp_tg_plugin {
public:
// iterate through all terms in m_tg and apply all theory MBP rules once
// returns true if any rules were applied
virtual bool apply() { return false; };
virtual bool apply() { return false; }
virtual ~mbp_tg_plugin() = default;
virtual void use_model() { };
virtual void get_new_vars(app_ref_vector*&) { };
virtual family_id get_family_id() const { return null_family_id; };
virtual void use_model() { }
virtual void get_new_vars(app_ref_vector*&) { }
virtual family_id get_family_id() const { return null_family_id; }
};

View file

@ -2022,6 +2022,6 @@ namespace nlarith {
void util::get_sign_branches(literal_set& lits, eval& ev, ptr_vector<branch>& branches) {
m_imp->get_sign_branches(lits, ev, branches);
}
};
}

View file

@ -143,5 +143,5 @@ namespace nlarith {
};
};
}

View file

@ -955,7 +955,7 @@ namespace qe {
return alloc(nlqsat, m, m_mode, m_params);
}
};
};
}
tactic * mk_nlqsat_tactic(ast_manager & m, params_ref const& p) {
return alloc(qe::nlqsat, m, qe::qsat_t, p);

View file

@ -367,6 +367,6 @@ namespace qe {
};
};
}

View file

@ -613,4 +613,4 @@ namespace qe {
return pogo(pA, pB, itp);
}
};
}

View file

@ -156,4 +156,4 @@ namespace qe {
lbool pogo(solver_factory& sf, expr* a, expr* b, expr_ref& itp);
};
};
}

View file

@ -1503,7 +1503,7 @@ namespace qe {
void qmax::collect_statistics(statistics& st) const {
m_imp->m_qsat.collect_statistics(st);
}
};
}
tactic * mk_qsat_tactic(ast_manager& m, params_ref const& p) {
return alloc(qe::qsat, m, p, qe::qsat_sat);