/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | modernize-replace-auto-ptr.cpp | 10 std::auto_ptr<Derived> create_derived_ptr(); 16 std::auto_ptr<char> f_5(); 22 void f_6(std::auto_ptr<int>); 25 void f_7(const std::auto_ptr<int> &); 32 std::auto_ptr<int> field; 36 typedef std::auto_ptr<int> int_ptr_type; 44 typedef typename std::auto_ptr<T> created_type; 48 created_type create() { return std::auto_ptr<T>(new T()); } in create() 57 using std::auto_ptr; 60 using std::auto_ptr; [all …]
|
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/Inputs/modernize-replace-auto-ptr/ |
D | memory.h | 12 template <class X> class auto_ptr { 15 explicit auto_ptr(X *p = 0) throw() {} in throw() 16 auto_ptr(auto_ptr &) throw() {} in throw() 17 template <class Y> auto_ptr(auto_ptr<Y> &) throw() {} in auto_ptr() function 18 auto_ptr &operator=(auto_ptr &) throw() { return *this; } in throw() 19 template <class Y> auto_ptr &operator=(auto_ptr<Y> &) throw() { in throw() 22 auto_ptr &operator=(auto_ptr_ref<X> r) throw() { return *this; } in throw() 23 ~auto_ptr() throw() {} in throw() 24 auto_ptr(auto_ptr_ref<X> r) throw() : x_(r.y_) {} in throw() 30 template <class Y> operator auto_ptr<Y>() throw() { return auto_ptr<Y>(x_); } in throw() [all …]
|
/external/llvm-project/llvm/test/Transforms/MemCpyOpt/ |
D | loadstore-sret.ll | 9 %"class.std::auto_ptr" = type { i32* } 11 define void @_Z3foov(%"class.std::auto_ptr"* noalias nocapture sret(%"class.std::auto_ptr") %agg.re… 14 ; CHECK-NEXT: [[TEMP_LVALUE:%.*]] = alloca %"class.std::auto_ptr", align 8 15 ; CHECK-NEXT: call void @_Z3barv(%"class.std::auto_ptr"* sret(%"class.std::auto_ptr") [[AGG_RESU… 16 …T: [[TMP_I_I:%.*]] = getelementptr inbounds %"class.std::auto_ptr", %"class.std::auto_ptr"* [[T… 17 …: [[TMP_I_I4:%.*]] = getelementptr inbounds %"class.std::auto_ptr", %"class.std::auto_ptr"* [[A… 21 %temp.lvalue = alloca %"class.std::auto_ptr", align 8 22 call void @_Z3barv(%"class.std::auto_ptr"* sret(%"class.std::auto_ptr") %temp.lvalue) 23 …%tmp.i.i = getelementptr inbounds %"class.std::auto_ptr", %"class.std::auto_ptr"* %temp.lvalue, i6… 25 …%tmp.i.i4 = getelementptr inbounds %"class.std::auto_ptr", %"class.std::auto_ptr"* %agg.result, i6… [all …]
|
/external/llvm-project/llvm/test/Transforms/DeadStoreElimination/MSSA/ |
D | 2011-09-06-EndOfFunction.ll | 6 %"class.std::auto_ptr" = type { i32* } 9 define void @_Z3foov(%"class.std::auto_ptr"* noalias nocapture sret(%"class.std::auto_ptr") %agg.re… 11 %temp.lvalue = alloca %"class.std::auto_ptr", align 8 12 call void @_Z3barv(%"class.std::auto_ptr"* sret(%"class.std::auto_ptr") %temp.lvalue) 13 …%_M_ptr.i.i = getelementptr inbounds %"class.std::auto_ptr", %"class.std::auto_ptr"* %temp.lvalue,… 17 …%_M_ptr.i.i4 = getelementptr inbounds %"class.std::auto_ptr", %"class.std::auto_ptr"* %agg.result,… 23 declare void @_Z3barv(%"class.std::auto_ptr"* sret(%"class.std::auto_ptr"))
|
/external/llvm-project/llvm/test/Transforms/DeadStoreElimination/MemDepAnalysis/ |
D | 2011-09-06-EndOfFunction.ll | 6 %"class.std::auto_ptr" = type { i32* } 9 define void @_Z3foov(%"class.std::auto_ptr"* noalias nocapture sret(%"class.std::auto_ptr") %agg.re… 11 %temp.lvalue = alloca %"class.std::auto_ptr", align 8 12 call void @_Z3barv(%"class.std::auto_ptr"* sret(%"class.std::auto_ptr") %temp.lvalue) 13 …%_M_ptr.i.i = getelementptr inbounds %"class.std::auto_ptr", %"class.std::auto_ptr"* %temp.lvalue,… 17 …%_M_ptr.i.i4 = getelementptr inbounds %"class.std::auto_ptr", %"class.std::auto_ptr"* %agg.result,… 23 declare void @_Z3barv(%"class.std::auto_ptr"* sret(%"class.std::auto_ptr"))
|
/external/llvm/test/Transforms/MemCpyOpt/ |
D | loadstore-sret.ll | 7 %"class.std::auto_ptr" = type { i32* } 10 define void @_Z3foov(%"class.std::auto_ptr"* noalias nocapture sret %agg.result) ssp { 12 %temp.lvalue = alloca %"class.std::auto_ptr", align 8 13 ; CHECK: call void @_Z3barv(%"class.std::auto_ptr"* sret %agg.result) 14 call void @_Z3barv(%"class.std::auto_ptr"* sret %temp.lvalue) 15 …%tmp.i.i = getelementptr inbounds %"class.std::auto_ptr", %"class.std::auto_ptr"* %temp.lvalue, i6… 18 …%tmp.i.i4 = getelementptr inbounds %"class.std::auto_ptr", %"class.std::auto_ptr"* %agg.result, i6… 25 declare void @_Z3barv(%"class.std::auto_ptr"* nocapture sret) nounwind
|
/external/llvm/test/Transforms/DeadStoreElimination/ |
D | 2011-09-06-EndOfFunction.ll | 6 %"class.std::auto_ptr" = type { i32* } 9 define void @_Z3foov(%"class.std::auto_ptr"* noalias nocapture sret %agg.result) uwtable ssp { 11 %temp.lvalue = alloca %"class.std::auto_ptr", align 8 12 call void @_Z3barv(%"class.std::auto_ptr"* sret %temp.lvalue) 13 …%_M_ptr.i.i = getelementptr inbounds %"class.std::auto_ptr", %"class.std::auto_ptr"* %temp.lvalue,… 17 …%_M_ptr.i.i4 = getelementptr inbounds %"class.std::auto_ptr", %"class.std::auto_ptr"* %agg.result,… 23 declare void @_Z3barv(%"class.std::auto_ptr"* sret)
|
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/ |
D | modernize-replace-auto-ptr.rst | 6 This check replaces the uses of the deprecated class ``std::auto_ptr`` by 15 -void take_ownership_fn(std::auto_ptr<int> int_ptr); 19 - std::auto_ptr<int> a(new int(x)); 20 - std::auto_ptr<int> b; 40 * Client code that declares a reference to an ``std::auto_ptr`` coming from 45 ``std::unique_ptr`` from an ``std::auto_ptr``. This pattern doesn't make much 46 sense and usually ``std::auto_ptr`` are stored by value (otherwise what is 52 std::auto_ptr<int> get_value(); 53 const std::auto_ptr<int> & get_ref(); 56 -std::auto_ptr<int> a(get_value()); [all …]
|
/external/OpenCSD/decoder/tests/snapshot_parser_lib/source/ |
D | snapshot_parser.cpp | 342 auto_ptr<Section> NewSection( const string& sectionName, Parsed& result) in NewSection() 348 return auto_ptr<Section>(new GlobalSection(result)); in NewSection() 352 return auto_ptr<Section>(new DumpSection(result)); in NewSection() 356 return auto_ptr<Section>(new ExtendRegsSection(result)); in NewSection() 360 return auto_ptr<Section>(new SymbolicRegsSection(result)); in NewSection() 364 return auto_ptr<Section>(new DeviceSection(result)); in NewSection() 369 return auto_ptr<Section>(new IgnoredSection); in NewSection() 397 auto_ptr<Section> NewDeviceList(const string& sectionName, ParsedDevices& result) in NewDeviceList() 403 return auto_ptr<Section>(new DeviceListSection(result)); in NewDeviceList() 409 return auto_ptr<Section>(new NullSection); in NewDeviceList() [all …]
|
/external/llvm-project/clang/test/SemaCXX/ |
D | conversion-function.cpp | 266 struct auto_ptr { struct 269 auto_ptr(auto_ptr&); 270 auto_ptr(auto_ptr_ref); 271 explicit auto_ptr(int *); 277 X(auto_ptr); 281 X x(auto_ptr(new int)); in f() 282 return X(auto_ptr(new int)); in f() 285 auto_ptr foo();
|
/external/clang/test/SemaCXX/ |
D | conversion-function.cpp | 248 struct auto_ptr { struct 251 auto_ptr(auto_ptr&); 252 auto_ptr(auto_ptr_ref); 253 explicit auto_ptr(int *); 259 X(auto_ptr); 263 X x(auto_ptr(new int)); in f() 264 return X(auto_ptr(new int)); in f() 267 auto_ptr foo();
|
/external/OpenCL-CTS/test_conformance/extensions/cl_khr_dx9_media_sharing/ |
D | utils.h | 119 bool YUVSurfaceSetNV12(std::auto_ptr<CSurfaceWrapper> &surface, 122 bool YUVSurfaceSetYV12(std::auto_ptr<CSurfaceWrapper> &surface, 126 std::auto_ptr<CSurfaceWrapper> &surface, 129 bool YUVSurfaceGetNV12(std::auto_ptr<CSurfaceWrapper> &surface, 132 bool YUVSurfaceGetYV12(std::auto_ptr<CSurfaceWrapper> &surface, 136 std::auto_ptr<CSurfaceWrapper> &surface, 181 std::auto_ptr<CSurfaceWrapper> &surface, 186 std::auto_ptr<CSurfaceWrapper> &surface, 198 std::auto_ptr<CDeviceWrapper> &device); 207 std::auto_ptr<CSurfaceWrapper> &surface,
|
/external/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/ |
D | auto_pointer.pass.cpp | 53 using AP = std::auto_ptr<int>; in test_sfinae() 59 using AP = std::auto_ptr<A>; in test_sfinae() 68 std::auto_ptr<B> ap(p); in main() 79 std::auto_ptr<B> ap(p); in main() 92 std::auto_ptr<B>&&>::value, in main()
|
/external/llvm-project/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/ |
D | auto_pointer.pass.cpp | 54 using AP = std::auto_ptr<int>; in test_sfinae() 60 using AP = std::auto_ptr<A>; in test_sfinae() 69 std::auto_ptr<B> ap(p); in main() 80 std::auto_ptr<B> ap(p); in main() 93 std::auto_ptr<B>&&>::value, in main()
|
/external/libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/ |
D | convert_to_auto_ptr.pass.cpp | 23 std::auto_ptr<B> 26 return std::auto_ptr<B>(new B(1)); in source() 32 std::auto_ptr<A> ap2(source()); in test()
|
/external/llvm-project/libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.conv/ |
D | convert_to_auto_ptr.pass.cpp | 25 std::auto_ptr<B> 28 return std::auto_ptr<B>(new B(1)); in source() 34 std::auto_ptr<A> ap2(source()); in test()
|
/external/libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/ |
D | assignment.fail.cpp | 26 const std::auto_ptr<A> ap1(p1); in test() 28 std::auto_ptr<A> ap2(p2); in test() 32 std::auto_ptr<A>& apr = ap2 = ap1; in test()
|
D | assignment.pass.cpp | 28 std::auto_ptr<A> ap1(p1); in test() 30 std::auto_ptr<A> ap2(p2); in test() 34 std::auto_ptr<A>& apr = ap2 = ap1; in test()
|
D | convert_assignment.fail.cpp | 26 const std::auto_ptr<B> ap1(p1); in test() 28 std::auto_ptr<A> ap2(p2); in test() 33 std::auto_ptr<A>& apr = ap2 = ap1; in test()
|
D | convert_assignment.pass.cpp | 28 std::auto_ptr<B> ap1(p1); in test() 30 std::auto_ptr<A> ap2(p2); in test() 35 std::auto_ptr<A>& apr = ap2 = ap1; in test()
|
/external/llvm-project/libcxx/test/std/depr/depr.auto.ptr/auto.ptr/auto.ptr.cons/ |
D | assignment.pass.cpp | 30 std::auto_ptr<A> ap1(p1); in test() 32 std::auto_ptr<A> ap2(p2); in test() 36 std::auto_ptr<A>& apr = ap2 = ap1; in test()
|
D | assignment.compile.fail.cpp | 25 const std::auto_ptr<A> ap1(p1); in test() 27 std::auto_ptr<A> ap2(p2); in test() 31 std::auto_ptr<A>& apr = ap2 = ap1; in test()
|
D | convert_assignment.pass.cpp | 30 std::auto_ptr<B> ap1(p1); in test() 32 std::auto_ptr<A> ap2(p2); in test() 37 std::auto_ptr<A>& apr = ap2 = ap1; in test()
|
/external/llvm-project/clang/test/Analysis/diagnostics/Inputs/include/ |
D | report-issues-within-main-file.h | 2 class auto_ptr { 6 auto_ptr(_Tp* __p = 0) throw() : _M_ptr(__p) { } in throw() 7 ~auto_ptr() { delete _M_ptr; } in ~auto_ptr()
|
/external/clang/test/Analysis/diagnostics/Inputs/include/ |
D | report-issues-within-main-file.h | 2 class auto_ptr { 6 auto_ptr(_Tp* __p = 0) throw() : _M_ptr(__p) { } in throw() 7 ~auto_ptr() { delete _M_ptr; } in ~auto_ptr()
|