Home
last modified time | relevance | path

Searched refs:smart_ptr (Results 1 – 10 of 10) sorted by relevance

/llvm-project-15.0.7/clang/test/Analysis/
H A Dos_smart_ptr.h9 struct smart_ptr { struct
10 smart_ptr() : pointer(nullptr) {} in smart_ptr() function
12 explicit smart_ptr(T *&p) : pointer(p) { in smart_ptr() function
18 smart_ptr(smart_ptr const &rhs) : pointer(rhs.pointer) { in smart_ptr() argument
24 smart_ptr & operator=(T *&rhs) {
25 smart_ptr(rhs).swap(*this);
29 smart_ptr & operator=(smart_ptr &rhs) {
30 smart_ptr(rhs).swap(*this);
34 ~smart_ptr() { in ~smart_ptr() argument
41 smart_ptr().swap(*this); in reset() argument
[all …]
H A Dosobject-retain-release.cpp670 using OSObjectPtr = os::smart_ptr<OSObject>;
/llvm-project-15.0.7/clang/test/Analysis/diagnostics/
H A Ddtors.cpp14 struct smart_ptr { struct
17 smart_ptr(S *);
27 void bar(smart_ptr p) { in bar()
/llvm-project-15.0.7/clang/test/Index/
H A Dcomplete-memfunc-cvquals.cpp12 struct smart_ptr { struct
18 smart_ptr<Foo> sf, const smart_ptr<Foo> &sfc, Foo volatile *fvp) { in text()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/
H A Dunnecessary-value-param-allowed-types.cpp15 struct smart_ptr { struct
16 ~smart_ptr();
54 void negative_smart_ptr(smart_ptr p) { in negative_smart_ptr()
H A Dunnecessary-copy-initialization-allowed-types.cpp15 struct smart_ptr { struct
16 ~smart_ptr();
49 const smart_ptr &get_smart_ptr();
H A Dfor-range-copy-allowed-types.cpp36 struct smart_ptr { struct
37 ~smart_ptr();
97 for (auto p : View<Iterator<smart_ptr>>()) { in negative_smart_ptr()
/llvm-project-15.0.7/clang/test/SemaTemplate/
H A Dinstantiate-declref.cpp75 struct smart_ptr { struct
87 void test_smart_ptr(smart_ptr<int> p) { in test_smart_ptr() argument
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dwarn-thread-safety-parsing.cpp1438 class smart_ptr { class
1449 smart_ptr<int> gdat PT_GUARDED_BY(gmu);
1455 smart_ptr<Mutex> smu_;
1458 smart_ptr<int> a PT_GUARDED_BY(mu_);
H A Dconversion-function.cpp214 namespace smart_ptr { namespace