Home
last modified time | relevance | path

Searched refs:moved (Results 1 – 25 of 288) sorted by relevance

12345678910>>...12

/llvm-project-15.0.7/libcxx/test/std/containers/associative/map/map.modifiers/
H A Dinsert_or_assign.pass.cpp55 bool moved() const {return int_ == -1;} in moved() function in Moveable
146 assert(mv1.moved()); // was moved from in main()
153 assert(mv2.moved()); // was moved from in main()
161 assert(mv3.moved()); // was moved from in main()
168 assert(mv4.moved()); // was moved from in main()
176 assert(mv5.moved()); // was moved from in main()
183 assert(mv6.moved()); // was moved from in main()
191 assert(mv7.moved()); // was moved from in main()
198 assert(mv8.moved()); // was moved from in main()
215 assert(mv1.moved()); // was moved from in main()
[all …]
H A Dtry.emplace.pass.cpp55 bool moved() const {return int_ == -1;} in moved() function in Moveable
83 assert(mv1.moved()); // was moved from in main()
91 assert(mv2.moved()); // was moved from in main()
99 assert(mv2.moved()); // was moved from in main()
126 assert(mv1.moved()); // was moved from in main()
127 assert(mvkey2.moved()); // was moved from in main()
153 assert(mv1.moved()); // was moved from in main()
171 assert(!mv1.moved()); // was not moved from in main()
172 assert(!mvkey1.moved()); // was not moved from in main()
178 assert(mv1.moved()); // was moved from in main()
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/
H A Dminimal_cxx11_configuration.pass.cpp55 T() : moved(0) {} in T()
56 T(T const& other) : moved(other.moved) {} in T()
57 T(T&& other) : moved(other.moved) { ++moved; other.moved = -1; } in T()
58 int moved; member
60 void f(T o, int expect_moved) { assert(o.moved == expect_moved); } in f()
64 assert(t.moved == 0); in test()
66 assert(t2.moved == 1); in test()
67 assert(t.moved == -1); in test()
/llvm-project-15.0.7/clang/test/Analysis/
H A Darray-init-loop.cpp107 S moved = (S &&) orig; in move_ctor_init() local
109 clang_analyzer_eval(moved.arr[0] == 1); // expected-warning{{TRUE}} in move_ctor_init()
110 clang_analyzer_eval(moved.arr[1] == 2); // expected-warning{{TRUE}} in move_ctor_init()
111 clang_analyzer_eval(moved.arr[2] == 3); // expected-warning{{TRUE}} in move_ctor_init()
119 S moved = (S &&) orig; in move_ctor_uninit() local
122 clang_analyzer_eval(moved.arr[0]); // expected-warning{{UNKNOWN}} in move_ctor_uninit()
123 clang_analyzer_eval(moved.arr[1]); // expected-warning{{UNKNOWN}} in move_ctor_uninit()
124 clang_analyzer_eval(moved.arr[2]); // expected-warning{{UNKNOWN}} in move_ctor_uninit()
125 clang_analyzer_eval(moved.arr[3]); // expected-warning{{UNKNOWN}} in move_ctor_uninit()
126 clang_analyzer_eval(moved.arr[4]); // expected-warning{{UNKNOWN}} in move_ctor_uninit()
[all …]
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.reverse/
H A Dbase.pass.cpp35 std::same_as<BidirRange> auto moved = std::move(rev).base(); in test() local
36 assert(moved.begin_ == buffer); in test()
37 assert(moved.end_ == buffer + 8); in test()
47 std::same_as<BidirRange> auto moved = std::move(rev).base(); in test() local
48 assert(moved.begin_ == buffer); in test()
49 assert(moved.end_ == buffer + 8); in test()
69 std::same_as<BidirSentRange<Copyable>> auto moved = std::move(rev).base(); in test() local
70 assert(moved.begin_ == buffer); in test()
71 assert(moved.end_ == buffer + 8); in test()
H A Dctor.view.pass.cpp39 auto moved = std::move(rev).base(); in test() local
40 assert(moved.begin_ == buffer); in test()
41 assert(moved.end_ == buffer + 8); in test()
/llvm-project-15.0.7/libcxx/test/std/containers/unord/unord.map/unord.map.modifiers/
H A Dtry.emplace.pass.cpp57 bool moved() const {return int_ == -1;} in moved() function in Moveable
91 assert(mv1.moved()); // was moved from in main()
99 assert(mv2.moved()); // was moved from in main()
107 assert(mv2.moved()); // was moved from in main()
134 assert(mv1.moved()); // was moved from in main()
135 assert(mvkey2.moved()); // was moved from in main()
161 assert(mv1.moved()); // was moved from in main()
179 assert(!mv1.moved()); // was not moved from in main()
180 assert(!mvkey1.moved()); // was not moved from in main()
186 assert(mv1.moved()); // was moved from in main()
[all …]
H A Dinsert_or_assign.pass.cpp58 bool moved() const {return int_ == -1;} in moved() function in Moveable
94 assert(mv1.moved()); // was moved from in main()
102 assert(mv2.moved()); // was moved from in main()
129 assert(mv1.moved()); // was moved from in main()
138 assert(mv2.moved()); // was moved from in main()
155 assert(mv1.moved()); // was moved from in main()
162 assert(mv2.moved()); // was moved from in main()
179 assert(mv1.moved()); // was moved from in main()
180 assert(!mvkey1.moved()); // was not moved from in main()
188 assert(mv2.moved()); // was moved from in main()
[all …]
/llvm-project-15.0.7/libcxx/test/support/
H A Dany_helpers.h102 static int moved; member
108 small_type::moved = 0; in reset()
143 ++moved; in small_type()
182 static int moved; member
188 large_type::moved = 0; in reset()
224 ++moved; in large_type()
275 static int moved; member
291 ++count; ++moved; in throw()
313 static int moved; member
331 ++count; ++moved; in throw()
[all …]
H A Dexperimental_any_helpers.h74 static int moved; member
80 small_type::moved = 0; in reset()
109 ++moved; in throw()
129 int small_type<Dummy>::moved = 0;
148 static int moved; member
154 large_type::moved = 0; in reset()
184 ++moved; in large_type()
205 int large_type<Dummy>::moved = 0;
/llvm-project-15.0.7/libcxx/test/std/ranges/range.adaptors/range.filter/
H A Dctor.view_pred.pass.cpp76 bool moved = false, copied = false; in test() local
77 TrackingRange range(&moved, &copied); in test()
80 assert(moved); in test()
86 bool moved = false, copied = false; in test() local
88 TrackingPred pred(&moved, &copied); in test()
90 assert(moved); in test()
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.general/
H A Dignore.pass.cpp29 auto moved = std::move(copy); in test_ignore_constexpr() local
30 ((void)moved); in test_ignore_constexpr()
35 auto moved = std::ignore; in test_ignore_constexpr() local
36 moved = std::move(copy); in test_ignore_constexpr()
/llvm-project-15.0.7/libcxx/test/std/utilities/utility/pairs/pairs.pair/
H A Dassign_rv_pair.pass.cpp26 int moved = 0; member
33 ++moved; in operator =()
85 assert(p.first.moved == 0); in test()
87 assert(p2.first.moved == 0); in test()
96 assert(p.first.moved == 1); in test()
98 assert(p2.first.moved == 0); in test()
H A Dassign_pair.pass.cpp26 int moved = 0; member
33 ++moved; in operator =()
72 assert(p.first.moved == 0); in test()
74 assert(p2.first.moved == 0); in test()
H A Dassign_rv_pair_U_V.pass.cpp30 int moved = 0; member
38 ++moved; in operator =()
78 assert(p.second.moved == 1); in test()
80 assert(t.second.moved == 0); in test()
/llvm-project-15.0.7/libcxx/lib/abi/
H A DCHANGELOG.TXT291 Symbol moved: __ZdaPv
292 Symbol moved: __ZdaPvm
297 Symbol moved: __ZdlPv
303 Symbol moved: __Znam
307 Symbol moved: __Znwm
318 Symbol moved: _ZdaPv
319 Symbol moved: _ZdaPvm
324 Symbol moved: _ZdlPv
325 Symbol moved: _ZdlPvm
330 Symbol moved: _Znam
[all …]
/llvm-project-15.0.7/libcxx/test/libcxx/algorithms/alg.sorting/alg.heap.operations/make.heap/
H A Dcomplexity.pass.cpp25 int moved = 0; member
32 MyInt(MyInt&& other) : value(other.value) { ++stats.moved; } in MyInt()
40 ++stats.moved; in operator =()
66 assert(stats.moved == 153'486); in main()
/llvm-project-15.0.7/libcxx/test/libcxx/algorithms/alg.sorting/alg.heap.operations/sort.heap/
H A Dcomplexity.pass.cpp25 int moved = 0; member
32 MyInt(MyInt&& other) : value(other.value) { ++stats.moved; } in MyInt()
40 ++stats.moved; in operator =()
67 assert(stats.moved == 1'764'997); in main()
/llvm-project-15.0.7/libcxx/test/libcxx/ranges/range.adaptors/range.copy.wrap/
H A Dno_unique_address.pass.cpp20 bool moved = false; variable
25 Empty(Empty&&) noexcept { moved = true; } in Empty()
54 assert(moved); in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/any/any.nonmembers/any.cast/
H A Dany_cast_reference.pass.cpp121 assert(Type::moved == 1); in test_cast_to_reference()
180 assert(Type::moved == 1); in test_cast_to_reference()
193 assert(Type::moved == 1); in test_cast_to_value()
212 assert(Type::moved == 0); in test_cast_to_value()
226 assert(Type::moved == 0); in test_cast_to_value()
240 assert(Type::moved == 0); in test_cast_to_value()
251 assert(Type::moved == 1); in test_cast_to_value()
270 assert(Type::moved == 1); in test_cast_to_value()
286 assert(Type::moved == 0); in test_cast_to_value()
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/hicpp/
H A Dinvalid-access-moved.rst1 .. title:: clang-tidy - hicpp-invalid-access-moved
5 hicpp-invalid-access-moved
10 …s-an-invalid-object-or-an-object-with-indeterminate-value/>`_ to check if moved-from objects are a…
/llvm-project-15.0.7/libcxx/test/std/utilities/any/any.class/any.assign/
H A Dvalue.pass.cpp61 assert(RHS::moved == 1); in test_assign_value()
65 assert(RHS::moved >= 1); in test_assign_value()
93 assert(RHS::moved >= 0); in test_assign_value_empty()
102 assert(RHS::moved == 0); in test_assign_value_empty()
108 assert(RHS::moved >= 1); in test_assign_value_empty()
/llvm-project-15.0.7/libcxx/test/std/utilities/tuple/tuple.tuple/tuple.assign/
H A Dmove.pass.cpp47 static int moved; member
48 static void reset() { copied = moved = 0; } in reset()
51 CountAssign& operator=(CountAssign&&) { ++moved; return *this; } in operator =()
54 int CountAssign::moved = 0; member in CountAssign
138 assert(CountAssign::moved == 0); in main()
/llvm-project-15.0.7/libcxx/test/std/utilities/any/any.class/any.cons/
H A Dmove.pass.cpp72 assert(Type::moved == 1); in test_move()
79 … assert(Type::moved == 1 || Type::moved == 2); // zero or more move operations can be performed. in test_move()
/llvm-project-15.0.7/libcxx/test/std/utilities/any/any.nonmembers/
H A Dmake_any.pass.cpp38 assert(Type::moved == 0); in test_make_any_type()
48 assert(Type::moved == 0); in test_make_any_type()
58 assert(Type::moved == 0); in test_make_any_type()

12345678910>>...12