Fix new (after upgrade) clang-tidy error, adjust .codespell-ignorelines accordingly.

This commit is contained in:
Ralf W. Grosse-Kunstleve 2022-07-21 08:15:53 -07:00
parent e32f73bf3e
commit 8f31c19e99
2 changed files with 2 additions and 6 deletions

View File

@ -4,11 +4,10 @@ atyp_valu rtrn_valu() { atyp_valu obj{"Valu"}; return obj; }
explicit movable_int(int v) : valu{v} {}
int valu;
(m.pass_valu, "Valu", "pass_valu:Valu(_MvCtor)*_CpCtor"),
other.valu = 91;
REQUIRE(hld.as_raw_ptr_unowned<zombie>()->valu == 19);
REQUIRE(orig.valu == 91);
REQUIRE(othr.valu == 19);
valu = other.valu;
with pytest.raises(ValueError) as excinfo:
with pytest.raises(ValueError) as exc_info:
// valu(e), ref(erence), ptr or p (pointer), r = rvalue, m = mutable, c = const,
movable_int(movable_int &&other) noexcept : valu(other.valu) { other.valu = 91; }

View File

@ -15,10 +15,7 @@ namespace helpers {
struct movable_int {
int valu;
explicit movable_int(int v) : valu{v} {}
movable_int(movable_int &&other) noexcept {
valu = other.valu;
other.valu = 91;
}
movable_int(movable_int &&other) noexcept : valu(other.valu) { other.valu = 91; }
};
template <typename T>