3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

Use = default for virtual constructors.

This commit is contained in:
Bruce Mitchener 2022-08-04 13:21:07 +07:00 committed by Nikolaj Bjorner
parent aa0719abae
commit 5014b1a34d
85 changed files with 106 additions and 107 deletions

View file

@ -37,8 +37,7 @@ namespace smt {
m_context(ctx) {
}
virtual ~mam() {
}
virtual ~mam() = default;
virtual void add_pattern(quantifier * q, app * mp) = 0;

View file

@ -45,7 +45,7 @@ namespace smt {
virtual void pop_scope(unsigned num_scopes) = 0;
virtual void next_case_split(bool_var & next, lbool & phase) = 0;
virtual void display(std::ostream & out) = 0;
virtual ~case_split_queue() {}
virtual ~case_split_queue() = default;
// theory-aware branching hint
virtual void add_theory_aware_branching_info(bool_var v, double priority, lbool phase) {}

View file

@ -33,7 +33,7 @@ namespace smt {
*/
class clause_del_eh {
public:
virtual ~clause_del_eh() {}
virtual ~clause_del_eh() = default;
virtual void operator()(ast_manager & m, clause * cls) = 0;
};

View file

@ -65,7 +65,7 @@ namespace smt {
public:
for_each_relevant_expr(context & ctx);
virtual ~for_each_relevant_expr() {}
virtual ~for_each_relevant_expr() = default;
/**
\brief Visit the relevant sub-expressions of n.
That is, only subexpressions m of n, such that m_context.is_relevant(m).

View file

@ -49,7 +49,7 @@ namespace smt {
unsigned m_in_region:1; // true if the object was allocated in a region.
public:
justification(bool in_region = true):m_mark(false), m_in_region(in_region) {}
virtual ~justification() {}
virtual ~justification() = default;
/**
\brief This method should return true if the method del_eh needs to be invoked

View file

@ -1157,7 +1157,7 @@ namespace smt {
ast_manager& m;
public:
qinfo(ast_manager& m) :m(m) {}
virtual ~qinfo() {}
virtual ~qinfo() = default;
virtual char const* get_kind() const = 0;
virtual bool is_equal(qinfo const* qi) const = 0;
virtual void display(std::ostream& out) const { out << "[" << get_kind() << "]"; }

View file

@ -136,7 +136,7 @@ namespace smt {
*/
class model_value_proc {
public:
virtual ~model_value_proc() {}
virtual ~model_value_proc() = default;
/**
\brief Fill result with the dependencies of this functor.
That is, to invoke mk_value, the dependencies in result must be constructed.

View file

@ -106,7 +106,7 @@ namespace smt {
class quantifier_manager_plugin {
public:
virtual ~quantifier_manager_plugin() {}
virtual ~quantifier_manager_plugin() = default;
virtual void set_manager(quantifier_manager & qm) = 0;

View file

@ -29,7 +29,7 @@ namespace smt {
void mark_as_relevant(relevancy_propagator & rp, expr * n);
void mark_args_as_relevant(relevancy_propagator & rp, app * n);
public:
virtual ~relevancy_eh() {}
virtual ~relevancy_eh() = default;
/**
\brief This method is invoked when n is marked as relevant.
*/
@ -87,7 +87,7 @@ namespace smt {
context & m_context;
public:
relevancy_propagator(context & ctx);
virtual ~relevancy_propagator() {}
virtual ~relevancy_propagator() = default;
context & get_context() { return m_context; }

View file

@ -294,7 +294,7 @@ namespace smt {
m_bound_kind(k),
m_atom(a) {
}
virtual ~bound() {}
virtual ~bound() = default;
theory_var get_var() const { return m_var; }
bound_kind get_bound_kind() const { return static_cast<bound_kind>(m_bound_kind); }
bool is_atom() const { return m_atom; }

View file

@ -42,7 +42,7 @@ namespace smt {
class atom {
public:
virtual ~atom() {}
virtual ~atom() = default;
virtual bool is_bit() const = 0;
};

View file

@ -222,7 +222,7 @@ namespace smt {
class apply {
public:
virtual ~apply() {}
virtual ~apply() = default;
virtual void operator()(theory_seq& th) = 0;
};