mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
Use noexcept
more. (#7058)
This commit is contained in:
parent
b44ab2f620
commit
50e0fd3ba6
69 changed files with 97 additions and 112 deletions
|
@ -484,7 +484,7 @@ namespace datalog {
|
|||
|
||||
virtual bool can_swap(const base_object & o) const { return false; }
|
||||
|
||||
virtual void swap(base_object & o) {
|
||||
virtual void swap(base_object & o) noexcept {
|
||||
std::swap(m_kind, o.m_kind);
|
||||
#if DL_LEAK_HUNTING
|
||||
m_leak_guard = get_plugin().get_ast_manager().mk_fresh_sort(get_plugin().get_name().bare_str());
|
||||
|
@ -910,7 +910,7 @@ namespace datalog {
|
|||
public:
|
||||
table_signature() : m_functional_columns(0) {}
|
||||
|
||||
void swap(table_signature & s) {
|
||||
void swap(table_signature & s) noexcept {
|
||||
signature_base::swap(s);
|
||||
std::swap(m_functional_columns, s.m_functional_columns);
|
||||
}
|
||||
|
|
|
@ -1835,7 +1835,7 @@ namespace datalog {
|
|||
}
|
||||
}
|
||||
|
||||
void finite_product_relation::swap(relation_base & r0) {
|
||||
void finite_product_relation::swap(relation_base & r0) noexcept {
|
||||
SASSERT(can_swap(r0));
|
||||
finite_product_relation & r = finite_product_relation_plugin::get(r0);
|
||||
SASSERT(get_signature()==r.get_signature());
|
||||
|
|
|
@ -316,7 +316,7 @@ namespace datalog {
|
|||
|
||||
Both relations must come from the same plugin and be of the same signature.
|
||||
*/
|
||||
void swap(relation_base & r) override;
|
||||
void swap(relation_base & r) noexcept override;
|
||||
|
||||
/**
|
||||
\brief Create a \c finite_product_relation object.
|
||||
|
|
|
@ -59,7 +59,7 @@ namespace datalog {
|
|||
dealloc(m_elems);
|
||||
}
|
||||
|
||||
void swap(relation_base& other) override {
|
||||
void swap(relation_base& other) noexcept override {
|
||||
vector_relation& o = dynamic_cast<vector_relation&>(other);
|
||||
if (&o == this) return;
|
||||
std::swap(o.m_eqs, m_eqs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue