mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
Fix new (after upgrade) clang-tidy error, adjust .codespell-ignorelines accordingly.
This commit is contained in:
parent
e32f73bf3e
commit
8f31c19e99
@ -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; }
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user