Skip to content

Commit 8f31c19

Browse files
committed
Fix new (after upgrade) clang-tidy error, adjust .codespell-ignorelines accordingly.
1 parent e32f73b commit 8f31c19

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.codespell-ignorelines

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ atyp_valu rtrn_valu() { atyp_valu obj{"Valu"}; return obj; }
44
explicit movable_int(int v) : valu{v} {}
55
int valu;
66
(m.pass_valu, "Valu", "pass_valu:Valu(_MvCtor)*_CpCtor"),
7-
other.valu = 91;
87
REQUIRE(hld.as_raw_ptr_unowned<zombie>()->valu == 19);
98
REQUIRE(orig.valu == 91);
109
REQUIRE(othr.valu == 19);
11-
valu = other.valu;
1210
with pytest.raises(ValueError) as excinfo:
1311
with pytest.raises(ValueError) as exc_info:
1412
// valu(e), ref(erence), ptr or p (pointer), r = rvalue, m = mutable, c = const,
13+
movable_int(movable_int &&other) noexcept : valu(other.valu) { other.valu = 91; }

tests/pure_cpp/smart_holder_poc_test.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@ namespace helpers {
1515
struct movable_int {
1616
int valu;
1717
explicit movable_int(int v) : valu{v} {}
18-
movable_int(movable_int &&other) noexcept {
19-
valu = other.valu;
20-
other.valu = 91;
21-
}
18+
movable_int(movable_int &&other) noexcept : valu(other.valu) { other.valu = 91; }
2219
};
2320

2421
template <typename T>

0 commit comments

Comments
 (0)