Home
last modified time | relevance | path

Searched refs:nothrow_t (Results 1 – 25 of 53) sorted by relevance

123

/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/
H A Dtsan_new_delete.cpp23 struct nothrow_t {}; struct
99 std::nothrow_t const&);
101 std::nothrow_t const&) { in operator new()
108 std::nothrow_t const&);
110 std::nothrow_t const&) { in operator new[]()
136 void operator delete(void *ptr, std::nothrow_t const&);
137 void operator delete(void *ptr, std::nothrow_t const&) { in operator delete()
142 void operator delete[](void *ptr, std::nothrow_t const&);
143 void operator delete[](void *ptr, std::nothrow_t const&) { in operator delete[]()
179 std::nothrow_t const&);
[all …]
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/
H A Dtsan_new_delete.cpp23 struct nothrow_t {}; struct
99 std::nothrow_t const&);
101 std::nothrow_t const&) { in operator new()
108 std::nothrow_t const&);
110 std::nothrow_t const&) { in operator new[]()
136 void operator delete(void *ptr, std::nothrow_t const&);
137 void operator delete(void *ptr, std::nothrow_t const&) { in operator delete()
142 void operator delete[](void *ptr, std::nothrow_t const&);
143 void operator delete[](void *ptr, std::nothrow_t const&) { in operator delete[]()
179 std::nothrow_t const&);
[all …]
/llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Linux/
H A Daligned_delete_test.cpp15 struct nothrow_t {}; struct
16 static const nothrow_t nothrow;
22 void *operator new(size_t, std::nothrow_t const&);
23 void *operator new[](size_t, std::nothrow_t const&);
26 void *operator new(size_t, std::align_val_t, std::nothrow_t const&);
27 void *operator new[](size_t, std::align_val_t, std::nothrow_t const&);
31 void operator delete(void*, std::nothrow_t const&);
32 void operator delete[](void*, std::nothrow_t const&);
37 void operator delete(void*, std::align_val_t, std::nothrow_t const&);
38 void operator delete[](void*, std::align_val_t, std::nothrow_t const&);
/llvm-project-15.0.7/compiler-rt/test/scudo/
H A Daligned-new.cpp18 struct nothrow_t {}; struct
19 static const nothrow_t nothrow;
25 void *operator new(size_t, std::nothrow_t const &);
26 void *operator new[](size_t, std::nothrow_t const &);
29 void *operator new(size_t, std::align_val_t, std::nothrow_t const &);
30 void *operator new[](size_t, std::align_val_t, std::nothrow_t const &);
34 void operator delete(void *, std::nothrow_t const &);
35 void operator delete[](void *, std::nothrow_t const &);
40 void operator delete(void *, std::align_val_t, std::nothrow_t const &);
41 void operator delete[](void *, std::align_val_t, std::nothrow_t const &);
/llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/Linux/
H A Dnew_delete_test.cpp17 struct nothrow_t {}; struct
18 static const nothrow_t nothrow;
24 void *operator new(size_t, std::nothrow_t const&);
25 void *operator new[](size_t, std::nothrow_t const&);
28 void *operator new(size_t, std::align_val_t, std::nothrow_t const&);
29 void *operator new[](size_t, std::align_val_t, std::nothrow_t const&);
33 void operator delete(void*, std::nothrow_t const&);
34 void operator delete[](void*, std::nothrow_t const&);
39 void operator delete(void*, std::align_val_t, std::nothrow_t const&);
40 void operator delete[](void*, std::align_val_t, std::nothrow_t const&);
/llvm-project-15.0.7/compiler-rt/lib/asan/
H A Dasan_new_delete.cpp65 struct nothrow_t {}; struct
100 void *operator new(size_t size, std::nothrow_t const&) in operator new()
103 void *operator new[](size_t size, std::nothrow_t const&) in operator new[]()
112 void *operator new(size_t size, std::align_val_t align, std::nothrow_t const&) in operator new()
125 INTERCEPTOR(void *, _ZnwmRKSt9nothrow_t, size_t size, std::nothrow_t const&) { in INTERCEPTOR()
128 INTERCEPTOR(void *, _ZnamRKSt9nothrow_t, size_t size, std::nothrow_t const&) { in INTERCEPTOR()
157 void operator delete(void *ptr, std::nothrow_t const&) in operator delete()
160 void operator delete[](void *ptr, std::nothrow_t const&) in operator delete[]()
175 void operator delete(void *ptr, std::align_val_t align, std::nothrow_t const&) in operator delete()
192 INTERCEPTOR(void, _ZdlPvRKSt9nothrow_t, void *ptr, std::nothrow_t const&) in INTERCEPTOR()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/hwasan/
H A Dhwasan_new_delete.cpp60 struct nothrow_t {}; struct
71 size_t size, std::nothrow_t const &) { in operator new()
75 size_t size, std::nothrow_t const &) { in operator new[]()
88 void *ptr, std::nothrow_t const &) { in operator delete()
92 void *ptr, std::nothrow_t const &) { in operator delete[]()
113 size_t size, std::align_val_t align, std::nothrow_t const &) { in operator new()
117 size_t size, std::align_val_t align, std::nothrow_t const &) { in operator new[]()
130 void *ptr, std::align_val_t, std::nothrow_t const &) NOEXCEPT { in operator delete()
134 void *ptr, std::align_val_t, std::nothrow_t const &) NOEXCEPT { in operator delete[]()
/llvm-project-15.0.7/compiler-rt/lib/msan/
H A Dmsan_new_delete.cpp27 struct nothrow_t {}; struct
49 void *operator new(size_t size, std::nothrow_t const&) { in operator new()
53 void *operator new[](size_t size, std::nothrow_t const&) { in operator new[]()
63 void *operator new(size_t size, std::align_val_t align, std::nothrow_t const&) in operator new()
66 void *operator new[](size_t size, std::align_val_t align, std::nothrow_t const&) in operator new[]()
78 void operator delete(void *ptr, std::nothrow_t const&) { OPERATOR_DELETE_BODY; } in operator delete()
80 void operator delete[](void *ptr, std::nothrow_t const&) { in operator delete[]()
95 void operator delete(void *ptr, std::align_val_t align, std::nothrow_t const&) in operator delete()
98 void operator delete[](void *ptr, std::align_val_t align, std::nothrow_t const&) in operator delete[]()
/llvm-project-15.0.7/compiler-rt/lib/dfsan/
H A Ddfsan_new_delete.cpp25 struct nothrow_t {}; struct
50 void *operator new(size_t size, std::nothrow_t const &) { in operator new()
54 void *operator new[](size_t size, std::nothrow_t const &) { in operator new[]()
67 std::nothrow_t const &) { in operator new()
72 std::nothrow_t const &) { in operator new[]()
85 void operator delete(void *ptr, std::nothrow_t const &) { in operator delete()
89 void operator delete[](void *ptr, std::nothrow_t const &) { in operator delete[]()
108 std::nothrow_t const &) { in operator delete()
113 std::nothrow_t const &) { in operator delete[]()
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dbuiltin-operator-new-delete.cpp15 struct nothrow_t {}; struct
19 std::nothrow_t nothrow;
28 void *operator new(size_t, const std::nothrow_t &) throw();
29 void *operator new[](size_t, const std::nothrow_t &) throw();
30 void operator delete(void *, const std::nothrow_t &) throw();
31 void operator delete[](void *, const std::nothrow_t &) throw();
H A Dnew.cpp23 struct nothrow_t {}; struct
25 std::nothrow_t nothrow;
34 void *operator new(size_t, const std::nothrow_t &) throw();
35 void *operator new[](size_t, const std::nothrow_t &) throw();
36 void operator delete(void *, const std::nothrow_t &) throw();
37 void operator delete[](void *, const std::nothrow_t &) throw();
179 …__attribute__((returns_nonnull)) void *operator new[](size_t size, const std::nothrow_t &) throw();
/llvm-project-15.0.7/compiler-rt/lib/scudo/
H A Dscudo_new_delete.cpp26 struct nothrow_t {}; struct
45 void *operator new(size_t size, std::nothrow_t const&) in operator new()
48 void *operator new[](size_t size, std::nothrow_t const&) in operator new[]()
57 void *operator new(size_t size, std::align_val_t align, std::nothrow_t const&) in operator new()
60 void *operator new[](size_t size, std::align_val_t align, std::nothrow_t const&) in operator new[]()
79 void operator delete(void *ptr, std::nothrow_t const&) in operator delete()
82 void operator delete[](void *ptr, std::nothrow_t const&) in operator delete[]()
97 void operator delete(void *ptr, std::align_val_t align, std::nothrow_t const&) in operator delete()
100 void operator delete[](void *ptr, std::align_val_t align, std::nothrow_t const&) in operator delete[]()
/llvm-project-15.0.7/compiler-rt/lib/memprof/
H A Dmemprof_new_delete.cpp29 struct nothrow_t {}; struct
55 void *operator new(size_t size, std::nothrow_t const &) { in operator new()
59 void *operator new[](size_t size, std::nothrow_t const &) { in operator new[]()
72 std::nothrow_t const &) { in operator new()
77 std::nothrow_t const &) { in operator new[]()
104 void operator delete(void *ptr, std::nothrow_t const &) { in operator delete()
108 void operator delete[](void *ptr, std::nothrow_t const &) { in operator delete[]()
129 std::nothrow_t const &) { in operator delete()
134 std::nothrow_t const &) { in operator delete[]()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dunavailable_aligned_allocation.cpp17 struct nothrow_t {}; struct
18 nothrow_t nothrow;
21 void *operator new(std::size_t __sz, const std::nothrow_t&) noexcept;
22 void *operator new[](std::size_t __sz, const std::nothrow_t&) noexcept;
24 void *operator new(std::size_t __sz, std::align_val_t, const std::nothrow_t&) noexcept;
25 void *operator new[](std::size_t __sz, std::align_val_t, const std::nothrow_t&) noexcept;
26 void operator delete(void *, std::align_val_t, const std::nothrow_t&);
27 void operator delete[](void *, std::align_val_t, const std::nothrow_t&);
H A Dbuiltin-operator-new-delete.cpp18 struct nothrow_t {}; struct
30 std::nothrow_t nothrow;
42 void *operator new(size_t, const std::nothrow_t &) throw(); // expected-note 1+ {{candidate functio…
43 void *operator new[](size_t, const std::nothrow_t &) throw();
44 void operator delete(void *, const std::nothrow_t &)throw(); // expected-note 1+ {{candidate functi…
45 void operator delete[](void *, const std::nothrow_t &) throw();
/llvm-project-15.0.7/libcxx/src/
H A Dnew.cpp33 const nothrow_t nothrow{};
86 operator new(size_t size, const std::nothrow_t&) noexcept in operator new() argument
112 operator new[](size_t size, const std::nothrow_t&) noexcept in operator new[]() argument
138 operator delete(void* ptr, const std::nothrow_t&) noexcept in operator delete() argument
159 operator delete[] (void* ptr, const std::nothrow_t&) noexcept in operator delete[]() argument
207 operator new(size_t size, std::align_val_t alignment, const std::nothrow_t&) noexcept in operator new() argument
233 operator new[](size_t size, std::align_val_t alignment, const std::nothrow_t&) noexcept in operator new[]() argument
259 operator delete(void* ptr, std::align_val_t alignment, const std::nothrow_t&) noexcept in operator delete() argument
280 operator delete[] (void* ptr, std::align_val_t alignment, const std::nothrow_t&) noexcept in operator delete[]() argument
/llvm-project-15.0.7/libcxxabi/src/
H A Dstdlib_new_delete.cpp49 operator new(size_t size, const std::nothrow_t&) noexcept in operator new() argument
75 operator new[](size_t size, const std::nothrow_t&) noexcept in operator new[]() argument
101 operator delete(void* ptr, const std::nothrow_t&) noexcept in operator delete() argument
122 operator delete[] (void* ptr, const std::nothrow_t&) noexcept in operator delete[]() argument
170 operator new(size_t size, std::align_val_t alignment, const std::nothrow_t&) noexcept in operator new() argument
196 operator new[](size_t size, std::align_val_t alignment, const std::nothrow_t&) noexcept in operator new[]() argument
222 operator delete(void* ptr, std::align_val_t alignment, const std::nothrow_t&) noexcept in operator delete() argument
243 operator delete[] (void* ptr, std::align_val_t alignment, const std::nothrow_t&) noexcept in operator delete[]() argument
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/
H A Dwrappers_cpp.cpp20 struct nothrow_t {}; struct
31 std::nothrow_t const &) NOEXCEPT { in operator new()
35 std::nothrow_t const &) NOEXCEPT { in operator new[]()
47 std::nothrow_t const &) NOEXCEPT { in operator new()
52 std::nothrow_t const &) NOEXCEPT { in operator new[]()
64 std::nothrow_t const &) NOEXCEPT { in operator delete()
68 std::nothrow_t const &) NOEXCEPT { in operator delete[]()
88 std::nothrow_t const &) NOEXCEPT { in operator delete()
93 std::nothrow_t const &) NOEXCEPT { in operator delete[]()
/llvm-project-15.0.7/clang/lib/Headers/openmp_wrappers/
H A Dnew12 // We need the system <new> for the std::nothrow_t. The new/delete operators
13 // which do not use nothrow_t are provided without the <new> header.
28 const std::nothrow_t &) OPENMP_NOEXCEPT {
32 inline void *operator new[](__SIZE_TYPE__ size, const std::nothrow_t &) {
36 inline void operator delete(void *ptr, const std::nothrow_t &)OPENMP_NOEXCEPT {
41 const std::nothrow_t &) OPENMP_NOEXCEPT {
/llvm-project-15.0.7/libcxx/include/
H A Dnew42 struct nothrow_t { explicit nothrow_t() = default; };
43 extern const nothrow_t nothrow;
54 void* operator new(std::size_t size, const std::nothrow_t&) noexcept; // replaceable, nodiscard i…
62 void operator delete(void* ptr, const std::nothrow_t&) noexcept; // replaceable
64 const std::nothrow_t&) noexcept; // replaceable, C++17
78 void operator delete[](void* ptr, const std::nothrow_t&) noexcept; // replaceable
80 const std::nothrow_t&) noexcept; // replaceable, C++17
124 struct _LIBCPP_TYPE_VIS nothrow_t { explicit nothrow_t() = default; };
125 extern _LIBCPP_FUNC_VIS const nothrow_t nothrow;
194 _LIBCPP_OVERRIDABLE_FUNC_VIS void operator delete(void* __p, const std::nothrow_t&) _NOEXCEPT;
[all …]
/llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/
H A Doverride-new-delete.cpp9 void *operator new(size_t size, std::nothrow_t const&) noexcept { in operator new()
12 void *operator new[](size_t size, std::nothrow_t const&) noexcept { in operator new[]()
18 void operator delete(void *ptr, std::nothrow_t const&) noexcept {} in operator delete()
19 void operator delete[](void *ptr, std::nothrow_t const&) noexcept {} in operator delete[]()
/llvm-project-15.0.7/compiler-rt/lib/lsan/
H A Dlsan_interceptors.cpp66 struct nothrow_t;
252 void *operator new(size_t size, std::nothrow_t const&) in operator new()
255 void *operator new[](size_t size, std::nothrow_t const&) in operator new[]()
264 void *operator new(size_t size, std::align_val_t align, std::nothrow_t const&) in operator new()
277 void operator delete[](void *ptr, std::nothrow_t const &) in operator delete[]()
292 void operator delete(void *ptr, std::align_val_t, std::nothrow_t const&) in operator delete()
295 void operator delete[](void *ptr, std::align_val_t, std::nothrow_t const&) in operator delete[]()
310 INTERCEPTOR(void *, _ZnwmRKSt9nothrow_t, size_t size, std::nothrow_t const&) in INTERCEPTOR()
312 INTERCEPTOR(void *, _ZnamRKSt9nothrow_t, size_t size, std::nothrow_t const&) in INTERCEPTOR()
319 INTERCEPTOR(void, _ZdlPvRKSt9nothrow_t, void *ptr, std::nothrow_t const&) in INTERCEPTOR()
[all …]
/llvm-project-15.0.7/clang/test/CodeGenCoroutines/
H A Dcoro-gro2.cpp9 struct nothrow_t {}; struct
10 constexpr nothrow_t nothrow = {};
16 void* operator new(__SIZE_TYPE__ __sz, const std::nothrow_t&) noexcept;
17 void operator delete(void* __p, const std::nothrow_t&) noexcept;
H A Dcoro-gro2-exp-namespace.cpp9 struct nothrow_t {}; struct
10 constexpr nothrow_t nothrow = {};
16 void *operator new(__SIZE_TYPE__ __sz, const std::nothrow_t &) noexcept;
17 void operator delete(void *__p, const std::nothrow_t &)noexcept;
/llvm-project-15.0.7/clang/test/CodeGen/
H A Daddress-sanitizer-and-array-cookie.cpp7 struct nothrow_t {}; struct
8 std::nothrow_t nothrow;
10 void *operator new[](size_t, const std::nothrow_t &) throw();

123