Home
last modified time | relevance | path

Searched refs:NoCopy (Results 1 – 19 of 19) sorted by relevance

/llvm-project-15.0.7/clang/test/CodeGen/
H A Dattr-noundef.cpp24 struct NoCopy { struct
26 NoCopy(NoCopy &) = delete;
28 NoCopy ret_nocopy() { return {}; } in ret_nocopy()
29 void pass_nocopy(NoCopy e) {} in pass_nocopy()
56 union NoCopy { union
58 NoCopy(NoCopy &) = delete;
60 NoCopy ret_nocopy() { return {}; } in ret_nocopy()
61 void pass_nocopy(NoCopy e) {} in pass_nocopy()
/llvm-project-15.0.7/clang/test/CXX/dcl.decl/dcl.init/
H A Dp14-0x.cpp10 struct NoCopy { struct
11 NoCopy();
12 NoCopy(const NoCopy &) = delete; // expected-note {{here}}
34 NoCopy nc = NoCopy(); // expected-error {{call to deleted}}
/llvm-project-15.0.7/libcxx/test/std/utilities/any/any.class/any.modifiers/
H A Demplace.pass.cpp251 struct NoCopy { in test_emplace_sfinae_constraints() struct
252 NoCopy() = default; in test_emplace_sfinae_constraints()
253 NoCopy(NoCopy const&) = delete; in test_emplace_sfinae_constraints()
254 NoCopy(int) {} in test_emplace_sfinae_constraints() function
255 NoCopy(std::initializer_list<int>, int, int) {} in test_emplace_sfinae_constraints() function
257 static_assert(!has_emplace<NoCopy>(), ""); in test_emplace_sfinae_constraints()
258 static_assert(!has_emplace<NoCopy, int>(), ""); in test_emplace_sfinae_constraints()
260 static_assert(!has_emplace<NoCopy&>(), ""); in test_emplace_sfinae_constraints()
261 static_assert(!has_emplace<NoCopy&, int>(), ""); in test_emplace_sfinae_constraints()
263 static_assert(!has_emplace<NoCopy&&>(), ""); in test_emplace_sfinae_constraints()
[all …]
/llvm-project-15.0.7/libcxx/test/std/utilities/optional/optional.monadic/
H A Dtransform.pass.cpp82 struct NoCopy { struct
83 NoCopy() = default;
84 NoCopy(const NoCopy&) { assert(false); } in NoCopy() argument
85 int operator()(const NoCopy&&) { return 1; } in operator ()() argument
91 NoMove operator()(const NoCopy&&) { return NoMove{}; } in operator ()()
195 std::optional<NoCopy> nc; in test()
197 std::move(nc).transform(NoCopy{}); in test()
198 std::move(cnc).transform(NoCopy{}); in test()
H A Dand_then.pass.cpp138 struct NoCopy { struct
139 NoCopy() = default;
140 NoCopy(const NoCopy&) { assert(false); } in NoCopy() function
141 std::optional<int> operator()(const NoCopy&&) { return 1; } in operator ()() argument
255 std::optional<NoCopy> nc; in test()
257 std::move(cnc).and_then(NoCopy{}); in test()
258 std::move(nc).and_then(NoCopy{}); in test()
/llvm-project-15.0.7/libcxx/test/std/utilities/any/any.class/any.cons/
H A Dvalue.pass.cpp135 struct NoCopy { in test_sfinae_constraints() struct
136 NoCopy() = default; in test_sfinae_constraints()
137 NoCopy(NoCopy const&) = delete; in test_sfinae_constraints()
138 NoCopy(int) {} in test_sfinae_constraints() argument
140 static_assert(!std::is_constructible<std::any, NoCopy>::value, ""); in test_sfinae_constraints()
141 static_assert(!std::is_constructible<std::any, NoCopy&>::value, ""); in test_sfinae_constraints()
142 static_assert(!std::is_convertible<NoCopy, std::any>::value, ""); in test_sfinae_constraints()
H A Din_place_type.pass.cpp147 struct NoCopy { in test_ctor_sfinae() struct
148 NoCopy() = default; in test_ctor_sfinae()
149 NoCopy(NoCopy const&) = delete; in test_ctor_sfinae()
150 NoCopy(int) {} in test_ctor_sfinae() argument
151 NoCopy(std::initializer_list<int>, int) {} in test_ctor_sfinae() function
153 using Tag = std::in_place_type_t<NoCopy>; in test_ctor_sfinae()
154 using RefTag = std::in_place_type_t<NoCopy&>; in test_ctor_sfinae()
/llvm-project-15.0.7/libcxx/test/std/utilities/any/any.class/any.assign/
H A Dvalue.pass.cpp187 struct NoCopy { in test_sfinae_constraints() struct
188 NoCopy() = default; in test_sfinae_constraints()
189 NoCopy(NoCopy const&) = delete; in test_sfinae_constraints()
190 NoCopy(NoCopy&&) = default; in test_sfinae_constraints()
192 static_assert(!std::is_assignable<std::any, NoCopy>::value, ""); in test_sfinae_constraints()
193 static_assert(!std::is_assignable<std::any, NoCopy&>::value, ""); in test_sfinae_constraints()
/llvm-project-15.0.7/libcxx/test/std/utilities/any/any.nonmembers/any.cast/
H A Dany_cast_pointer.pass.cpp143 struct NoCopy { NoCopy(NoCopy const&) = delete; }; in test_cast_non_copyable_type() struct
146 assert(std::any_cast<NoCopy>(&a) == nullptr); in test_cast_non_copyable_type()
147 assert(std::any_cast<NoCopy>(&ca) == nullptr); in test_cast_non_copyable_type()
/llvm-project-15.0.7/clang/test/CXX/stmt.stmt/stmt.iter/stmt.ranged/
H A Dp1.cpp202 struct NoCopy { in g() struct
203 NoCopy(); in g()
204 NoCopy(const NoCopy &) = delete; in g()
208 for (int n : NoCopy()) { // ok in g()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dlambda-expressions.cpp390 struct NoCopy { struct
391 NoCopy(int);
392 NoCopy(const NoCopy &) = delete; // expected-note {{deleted}}
395 template void f<NoCopy>(); // expected-note {{instantiation}}
H A Dcoroutines-exp-namespace.cpp1039 struct NoCopy { struct
1040 NoCopy(NoCopy const &) = delete; // expected-note 2 {{deleted here}}
1049 template void test_dependent_param(NoCopy<0>, NoCopy<1>); // expected-note {{requested here}}
H A Dcoroutines.cpp1060 struct NoCopy { struct
1061 NoCopy(NoCopy const&) = delete; // expected-note 2 {{deleted here}}
1070 template void test_dependent_param(NoCopy<0>, NoCopy<1>); // expected-note {{requested here}}
/llvm-project-15.0.7/libcxx/test/std/utilities/variant/variant.variant/variant.ctor/
H A Dcopy.pass.cpp34 struct NoCopy { struct
35 NoCopy(const NoCopy &) = delete;
110 using V = std::variant<int, NoCopy>; in test_copy_ctor_sfinae()
H A Dmove.pass.cpp32 struct NoCopy { struct
33 NoCopy(const NoCopy &) = delete;
139 using V = std::variant<int, NoCopy>; in test_move_ctor_sfinae()
/llvm-project-15.0.7/libcxx/test/std/utilities/variant/variant.variant/variant.assign/
H A Dmove.pass.cpp29 struct NoCopy { struct
30 NoCopy(const NoCopy &) = delete;
31 NoCopy &operator=(const NoCopy &) = default;
179 using V = std::variant<int, NoCopy>; in test_move_assignment_sfinae()
H A Dcopy.pass.cpp27 struct NoCopy { struct
28 NoCopy(const NoCopy &) = delete;
29 NoCopy &operator=(const NoCopy &) = default;
220 using V = std::variant<int, NoCopy>; in test_copy_assignment_sfinae()
/llvm-project-15.0.7/llvm/lib/DebugInfo/GSYM/
H A DObjectFileTransformer.cpp99 constexpr bool NoCopy = false; in convert() local
111 FunctionInfo(*AddrOrErr, size, Gsym.insertString(*Name, NoCopy))); in convert()
/llvm-project-15.0.7/clang/test/Analysis/
H A Dmalloc.mm143 // Test CF/NS...NoCopy. PR12100: Pointers can escape when custom deallocators are provided.