Home
last modified time | relevance | path

Searched refs:SmartPointer (Results 1 – 17 of 17) sorted by relevance

/external/clang/test/Analysis/
Ddtor.cpp23 class SmartPointer { class
26 SmartPointer(void *x) : X(x) {} in SmartPointer() function in SmartPointer
27 ~SmartPointer() { in ~SmartPointer()
35 SmartPointer Deleter(mem); in testSmartPointer()
46 SmartPointer Deleter(mem); in testSmartPointer2()
55 class Subclass : public SmartPointer {
57 Subclass(void *x) : SmartPointer(x) {} in Subclass()
72 class MultipleInheritance : public Subclass, public SmartPointer {
74 MultipleInheritance(void *a, void *b) : Subclass(a), SmartPointer(b) {} in MultipleInheritance()
112 SmartPointer P;
Dretain-release.mm277 class SmartPointer {
280 SmartPointer(id x) : x(x) {}
281 ~SmartPointer() { [x release]; }
293 SmartPointer foo(x);
298 SmartPointer foo(0);
306 SmartPointer foo(0);
312 SmartPointer *foo = new SmartPointer(x);
/external/llvm-project/clang/test/Analysis/
Ddtor.cpp23 class SmartPointer { class
26 SmartPointer(void *x) : X(x) {} in SmartPointer() function in SmartPointer
27 ~SmartPointer() { in ~SmartPointer()
35 SmartPointer Deleter(mem); in testSmartPointer()
46 SmartPointer Deleter(mem); in testSmartPointer2()
55 class Subclass : public SmartPointer {
57 Subclass(void *x) : SmartPointer(x) {} in Subclass()
72 class MultipleInheritance : public Subclass, public SmartPointer {
74 MultipleInheritance(void *a, void *b) : Subclass(a), SmartPointer(b) {} in MultipleInheritance()
112 SmartPointer P;
Dretain-release.mm277 class SmartPointer {
280 SmartPointer(id x) : x(x) {}
281 ~SmartPointer() { [x release]; }
293 SmartPointer foo(x);
298 SmartPointer foo(0);
306 SmartPointer foo(0);
312 SmartPointer *foo = new SmartPointer(x);
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dperformance-unnecessary-value-param-allowed-types.cpp3 struct SmartPointer { struct
4 ~SmartPointer();
45 void negativeSmartPointer(SmartPointer P) { in negativeSmartPointer()
Dperformance-unnecessary-copy-initialization-allowed-types.cpp3 struct SmartPointer { struct
4 ~SmartPointer();
45 const SmartPointer &getSmartPointer();
Dperformance-for-range-copy-allowed-types.cpp24 struct SmartPointer { struct
25 ~SmartPointer();
67 for (auto P : View<Iterator<SmartPointer>>()) { in negativeSmartPointer()
/external/abseil-cpp/absl/memory/
Dmemory_test.cc206 TEST(RawPtrTest, SmartPointer) { in TEST() argument
293 struct SmartPointer { struct
301 using rebind = SmartPointer<U>;
320 std::is_same<TraitsWith::rebind<int64_t>, SmartPointer<int64_t>>::value)); in TEST()
359 using pointer = SmartPointer<X>; in TEST()
361 EXPECT_TRUE((std::is_same<SmartPointer<X>, typename absl::allocator_traits< in TEST()
369 SmartPointer<const X>, in TEST()
384 (std::is_same<SmartPointer<void>, typename absl::allocator_traits< in TEST()
396 EXPECT_TRUE((std::is_same<SmartPointer<const void>, in TEST()
/external/webrtc/third_party/abseil-cpp/absl/memory/
Dmemory_test.cc206 TEST(RawPtrTest, SmartPointer) { in TEST() argument
293 struct SmartPointer { struct
301 using rebind = SmartPointer<U>;
320 std::is_same<TraitsWith::rebind<int64_t>, SmartPointer<int64_t>>::value)); in TEST()
359 using pointer = SmartPointer<X>; in TEST()
361 EXPECT_TRUE((std::is_same<SmartPointer<X>, typename absl::allocator_traits< in TEST()
369 SmartPointer<const X>, in TEST()
384 (std::is_same<SmartPointer<void>, typename absl::allocator_traits< in TEST()
396 EXPECT_TRUE((std::is_same<SmartPointer<const void>, in TEST()
/external/angle/third_party/abseil-cpp/absl/memory/
Dmemory_test.cc204 TEST(RawPtrTest, SmartPointer) { in TEST() argument
291 struct SmartPointer { struct
299 using rebind = SmartPointer<U>;
318 std::is_same<TraitsWith::rebind<int64_t>, SmartPointer<int64_t>>::value)); in TEST()
357 using pointer = SmartPointer<X>; in TEST()
359 EXPECT_TRUE((std::is_same<SmartPointer<X>, typename absl::allocator_traits< in TEST()
367 SmartPointer<const X>, in TEST()
382 (std::is_same<SmartPointer<void>, typename absl::allocator_traits< in TEST()
394 EXPECT_TRUE((std::is_same<SmartPointer<const void>, in TEST()
/external/openscreen/third_party/abseil/src/absl/memory/
Dmemory_test.cc204 TEST(RawPtrTest, SmartPointer) { in TEST() argument
291 struct SmartPointer { struct
299 using rebind = SmartPointer<U>;
318 std::is_same<TraitsWith::rebind<int64_t>, SmartPointer<int64_t>>::value)); in TEST()
357 using pointer = SmartPointer<X>; in TEST()
359 EXPECT_TRUE((std::is_same<SmartPointer<X>, typename absl::allocator_traits< in TEST()
367 SmartPointer<const X>, in TEST()
382 (std::is_same<SmartPointer<void>, typename absl::allocator_traits< in TEST()
394 EXPECT_TRUE((std::is_same<SmartPointer<const void>, in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/memory/
Dmemory_test.cc204 TEST(RawPtrTest, SmartPointer) { in TEST() argument
291 struct SmartPointer { struct
299 using rebind = SmartPointer<U>;
318 std::is_same<TraitsWith::rebind<int64_t>, SmartPointer<int64_t>>::value)); in TEST()
357 using pointer = SmartPointer<X>; in TEST()
359 EXPECT_TRUE((std::is_same<SmartPointer<X>, typename absl::allocator_traits< in TEST()
367 SmartPointer<const X>, in TEST()
382 (std::is_same<SmartPointer<void>, typename absl::allocator_traits< in TEST()
394 EXPECT_TRUE((std::is_same<SmartPointer<const void>, in TEST()
/external/libtextclassifier/abseil-cpp/absl/memory/
Dmemory_test.cc204 TEST(RawPtrTest, SmartPointer) { in TEST() argument
291 struct SmartPointer { struct
299 using rebind = SmartPointer<U>;
318 std::is_same<TraitsWith::rebind<int64_t>, SmartPointer<int64_t>>::value)); in TEST()
357 using pointer = SmartPointer<X>; in TEST()
359 EXPECT_TRUE((std::is_same<SmartPointer<X>, typename absl::allocator_traits< in TEST()
367 SmartPointer<const X>, in TEST()
382 (std::is_same<SmartPointer<void>, typename absl::allocator_traits< in TEST()
394 EXPECT_TRUE((std::is_same<SmartPointer<const void>, in TEST()
/external/sfntly/cpp/src/test/
Dsmart_pointer_test.cc77 TEST(SmartPointer, All) { in TEST() argument
/external/llvm/unittests/Support/
DIteratorTest.cpp60 TEST(PointeeIteratorTest, SmartPointer) { in TEST() argument
/external/llvm-project/llvm/unittests/ADT/
DIteratorTest.cpp108 TEST(PointeeIteratorTest, SmartPointer) { in TEST() argument
/external/googletest/googlemock/test/
Dgmock-matchers_test.cc3731 TEST(PointeeTest, SmartPointer) { in TEST() argument
3770 TEST(PointerTest, SmartPointer) { in TEST() argument