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:
parent
aa0719abae
commit
5014b1a34d
85 changed files with 106 additions and 107 deletions
|
@ -37,8 +37,7 @@ namespace smt {
|
|||
m_context(ctx) {
|
||||
}
|
||||
|
||||
virtual ~mam() {
|
||||
}
|
||||
virtual ~mam() = default;
|
||||
|
||||
virtual void add_pattern(quantifier * q, app * mp) = 0;
|
||||
|
||||
|
|
|
@ -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) {}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
@ -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).
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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() << "]"; }
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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; }
|
||||
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -42,7 +42,7 @@ namespace smt {
|
|||
|
||||
class atom {
|
||||
public:
|
||||
virtual ~atom() {}
|
||||
virtual ~atom() = default;
|
||||
virtual bool is_bit() const = 0;
|
||||
};
|
||||
|
||||
|
|
|
@ -222,7 +222,7 @@ namespace smt {
|
|||
|
||||
class apply {
|
||||
public:
|
||||
virtual ~apply() {}
|
||||
virtual ~apply() = default;
|
||||
virtual void operator()(theory_seq& th) = 0;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue