| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | attr-noundef.cpp | 24 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 D | p14-0x.cpp | 10 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 D | emplace.pass.cpp | 251 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 D | transform.pass.cpp | 82 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 D | and_then.pass.cpp | 138 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 D | value.pass.cpp | 135 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 D | in_place_type.pass.cpp | 147 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 D | value.pass.cpp | 187 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 D | any_cast_pointer.pass.cpp | 143 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 D | p1.cpp | 202 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 D | lambda-expressions.cpp | 390 struct NoCopy { struct 391 NoCopy(int); 392 NoCopy(const NoCopy &) = delete; // expected-note {{deleted}} 395 template void f<NoCopy>(); // expected-note {{instantiation}}
|
| H A D | coroutines-exp-namespace.cpp | 1039 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 D | coroutines.cpp | 1060 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 D | copy.pass.cpp | 34 struct NoCopy { struct 35 NoCopy(const NoCopy &) = delete; 110 using V = std::variant<int, NoCopy>; in test_copy_ctor_sfinae()
|
| H A D | move.pass.cpp | 32 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 D | move.pass.cpp | 29 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 D | copy.pass.cpp | 27 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 D | ObjectFileTransformer.cpp | 99 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 D | malloc.mm | 143 // Test CF/NS...NoCopy. PR12100: Pointers can escape when custom deallocators are provided.
|