Home
last modified time | relevance | path

Searched refs:Copyable (Results 1 – 25 of 38) sorted by relevance

12

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dbugprone-copy-constructor-init.cpp21 class Copyable { class
23 Copyable() = default;
24 Copyable(const Copyable &) = default;
39 class Copyable3 : public Copyable {
76 class X : public Copyable, public EmptyCopyable {
77 X(const X &other) : Copyable(other) {} in X()
92 class X3 : public Copyable, public Copyable2 {
93 X3(const X3 &other) : Copyable(other) {} in X3()
98 class X4 : public Copyable {
99 X4(const X4 &other) : Copyable() {} in X4()
[all …]
/external/llvm-project/libcxx/test/std/iterators/predef.iterators/insert.iterators/front.insert.iter.ops/front.insert.iter.op=/
Dlv_value.pass.cpp33 class Copyable class
37 Copyable() : data_(0) {} in Copyable() function in Copyable
38 ~Copyable() {data_ = -1;} in ~Copyable()
40 friend bool operator==(const Copyable& x, const Copyable& y) in operator ==()
46 test(std::list<Copyable>()); in main()
47 test(nasty_list<Copyable>()); in main()
/external/libcxx/test/std/iterators/predef.iterators/insert.iterators/front.insert.iter.ops/front.insert.iter.op=/
Dlv_value.pass.cpp32 class Copyable class
36 Copyable() : data_(0) {} in Copyable() function in Copyable
37 ~Copyable() {data_ = -1;} in ~Copyable()
39 friend bool operator==(const Copyable& x, const Copyable& y) in operator ==()
45 test(std::list<Copyable>()); in main()
46 test(nasty_list<Copyable>()); in main()
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dbugprone-copy-constructor-init.rst11 class Copyable {
13 Copyable() = default;
14 Copyable(const Copyable &) = default;
16 class X2 : public Copyable {
17 X2(const X2 &other) {} // Copyable(other) is missing
25 class X4 : public Copyable {
26 X4(const X4 &other) : Copyable() {} // other is missing
/external/llvm-project/libcxx/test/std/iterators/predef.iterators/insert.iterators/back.insert.iter.ops/back.insert.iter.op=/
Dlv_value.pass.cpp33 class Copyable class
37 Copyable() : data_(0) {} in Copyable() function in Copyable
38 ~Copyable() {data_ = -1;} in ~Copyable()
40 friend bool operator==(const Copyable& x, const Copyable& y) in operator ==()
46 test(std::vector<Copyable>()); in main()
/external/libcxx/test/std/iterators/predef.iterators/insert.iterators/back.insert.iter.ops/back.insert.iter.op=/
Dlv_value.pass.cpp32 class Copyable class
36 Copyable() : data_(0) {} in Copyable() function in Copyable
37 ~Copyable() {data_ = -1;} in ~Copyable()
39 friend bool operator==(const Copyable& x, const Copyable& y) in operator ==()
45 test(std::vector<Copyable>()); in main()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/
DStackTraceRecoveryCustomExceptionsTest.kt19 internal class Copyable(val customData: Int) : Throwable(), CopyableThrowable<Copyable> { class in kotlinx.coroutines.exceptions.StackTraceRecoveryCustomExceptionsTest
23 override fun createCopy(): Copyable { in createCopy()
24 val copy = Copyable(customData) in createCopy()
47 throw Copyable(239) in <lambda>()
50 } catch (e: Copyable) { in <lambda>()
53 assertTrue(cause is Copyable) in <lambda>()
/external/llvm-project/libcxx/test/std/utilities/utility/pairs/pairs.pair/
Dspecial_member_generation_test.pass.cpp56 test<Copyable>(); in test_constructors_exist()
57 test<Copyable &>(); in test_constructors_exist()
58 test<Copyable &&, false, true>(); in test_constructors_exist()
104 test<Copyable>(); in test_assignment_operator_exists()
105 test<Copyable &>(); in test_assignment_operator_exists()
106 test<Copyable &&>(); in test_assignment_operator_exists()
/external/libcxx/test/std/utilities/utility/pairs/pairs.pair/
Dspecial_member_generation_test.pass.cpp55 test<Copyable>(); in test_constructors_exist()
56 test<Copyable &>(); in test_constructors_exist()
57 test<Copyable &&, false, true>(); in test_constructors_exist()
103 test<Copyable>(); in test_assignment_operator_exists()
104 test<Copyable &>(); in test_assignment_operator_exists()
105 test<Copyable &&>(); in test_assignment_operator_exists()
/external/libcxx/test/support/
Darchetypes.ipp74 struct Copyable : DEFINE_BASE(Copyable) {
75 using Base = DEFINE_BASE(Copyable);
77 DEFINE_EXPLICIT DEFINE_CONSTEXPR Copyable() DEFINE_NOEXCEPT DEFINE_DEFAULT_CTOR;
78 DEFINE_EXPLICIT DEFINE_CONSTEXPR Copyable(Copyable const &) DEFINE_NOEXCEPT DEFINE_CTOR;
79 Copyable &operator=(Copyable const &) DEFINE_NOEXCEPT DEFINE_ASSIGN;
80 DEFINE_DTOR(Copyable)
159 Copyable,
/external/llvm-project/libcxx/test/support/
Darchetypes.ipp81 struct Copyable : DEFINE_BASE(Copyable) {
82 using Base = DEFINE_BASE(Copyable);
84 DEFINE_EXPLICIT DEFINE_CONSTEXPR Copyable() DEFINE_NOEXCEPT DEFINE_DEFAULT_CTOR;
85 DEFINE_EXPLICIT DEFINE_CONSTEXPR Copyable(Copyable const &) DEFINE_NOEXCEPT DEFINE_CTOR;
86 Copyable &operator=(Copyable const &) DEFINE_NOEXCEPT DEFINE_ASSIGN;
87 DEFINE_DTOR(Copyable)
166 Copyable,
/external/llvm-project/clang/test/CodeGenObjCXX/
Dlambda-to-block.mm28 struct Copyable { struct
29 Copyable(const Copyable &x); field
34 void hasLambda(Copyable x) { argument
64 void testHelperMerging(Copyable x) { argument
/external/libcxx/test/std/containers/sequences/vector/
Dtypes.pass.cpp86 test<Copyable, test_allocator<Copyable> >(); in main()
/external/llvm-project/libcxx/test/std/containers/sequences/vector/
Dtypes.pass.cpp89 test<Copyable, test_allocator<Copyable> >(); in main()
/external/libcxx/test/std/containers/
DCopyable.h13 class Copyable
/external/llvm-project/libcxx/test/std/containers/
DCopyable.h12 class Copyable
/external/llvm-project/libcxx/test/std/containers/sequences/deque/
Dtypes.pass.cpp82 test<Copyable, test_allocator<Copyable> >(); in main()
/external/libcxx/test/std/containers/sequences/deque/
Dtypes.pass.cpp79 test<Copyable, test_allocator<Copyable> >(); in main()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/random/
Dbit_gen_ref_test.cc61 TYPED_TEST(BitGenRefTest, Copyable) { in TYPED_TEST() argument
/external/openscreen/third_party/abseil/src/absl/random/
Dbit_gen_ref_test.cc61 TYPED_TEST(BitGenRefTest, Copyable) { in TYPED_TEST() argument
/external/libtextclassifier/abseil-cpp/absl/random/
Dbit_gen_ref_test.cc61 TYPED_TEST(BitGenRefTest, Copyable) { in TYPED_TEST() argument
/external/webrtc/third_party/abseil-cpp/absl/random/
Dbit_gen_ref_test.cc60 TYPED_TEST(BitGenRefTest, Copyable) { in TYPED_TEST() argument
/external/abseil-cpp/absl/random/
Dbit_gen_ref_test.cc60 TYPED_TEST(BitGenRefTest, Copyable) { in TYPED_TEST() argument
/external/openscreen/third_party/abseil/src/absl/types/
Doptional_test.cc137 struct Copyable { struct
138 Copyable() {} in Copyable() argument
139 Copyable(const Copyable&) {} in Copyable() function
140 Copyable& operator=(const Copyable&) { return *this; } in operator =() argument
218 EXPECT_TRUE(std::is_copy_constructible<absl::optional<Copyable>>::value); in TEST()
226 absl::is_trivially_copy_constructible<absl::optional<Copyable>>::value); in TEST()
301 EXPECT_TRUE(std::is_move_constructible<absl::optional<Copyable>>::value); in TEST()
618 EXPECT_TRUE(absl::is_copy_assignable<absl::optional<Copyable>>::value); in TEST()
707 EXPECT_TRUE(absl::is_move_assignable<absl::optional<Copyable>>::value); in TEST()
/external/libtextclassifier/abseil-cpp/absl/types/
Doptional_test.cc137 struct Copyable { struct
138 Copyable() {} in Copyable() function
139 Copyable(const Copyable&) {} in Copyable() argument
140 Copyable& operator=(const Copyable&) { return *this; } in operator =() argument
218 EXPECT_TRUE(std::is_copy_constructible<absl::optional<Copyable>>::value); in TEST()
226 absl::is_trivially_copy_constructible<absl::optional<Copyable>>::value); in TEST()
301 EXPECT_TRUE(std::is_move_constructible<absl::optional<Copyable>>::value); in TEST()
618 EXPECT_TRUE(absl::is_copy_assignable<absl::optional<Copyable>>::value); in TEST()
707 EXPECT_TRUE(absl::is_move_assignable<absl::optional<Copyable>>::value); in TEST()

12