@@ -81,17 +81,17 @@ _LIBCPP_WEAK void* operator new(size_t size, const std::nothrow_t&) noexcept {
8181 " it fails to allocate, making it impossible for `operator new(size_t, nothrow_t)` to fulfill its "
8282 " contract (since it should return nullptr upon failure). Please make sure you override "
8383 " `operator new(size_t, nothrow_t)` as well." );
84- # endif
84+ # endif
8585
8686 return operator_new_impl (size);
87- # else
87+ #else
8888 void * p = nullptr ;
8989 try {
9090 p = ::operator new (size);
9191 } catch (...) {
9292 }
9393 return p;
94- # endif
94+ #endif
9595}
9696
9797_LIBCPP_OVERRIDABLE_FUNCTION (_Znam, void *, operator new [], (size_t size)) _THROW_BAD_ALLOC {
@@ -109,17 +109,17 @@ _LIBCPP_WEAK void* operator new[](size_t size, const std::nothrow_t&) noexcept {
109109 " it fails to allocate, making it impossible for `operator new[](size_t, nothrow_t)` to fulfill its "
110110 " contract (since it should return nullptr upon failure). Please make sure you override "
111111 " `operator new[](size_t, nothrow_t)` as well." );
112- # endif
112+ # endif
113113
114114 return operator_new_impl (size);
115- # else
115+ #else
116116 void * p = nullptr ;
117117 try {
118118 p = ::operator new [](size);
119119 } catch (...) {
120120 }
121121 return p;
122- # endif
122+ #endif
123123}
124124
125125_LIBCPP_WEAK void operator delete (void * ptr) noexcept { std::free (ptr); }
@@ -175,17 +175,17 @@ _LIBCPP_WEAK void* operator new(size_t size, std::align_val_t alignment, const s
175175 " terminate in case it fails to allocate, making it impossible for `operator new(size_t, align_val_t, nothrow_t)` "
176176 " to fulfill its contract (since it should return nullptr upon failure). Please make sure you override "
177177 " `operator new(size_t, align_val_t, nothrow_t)` as well." );
178- # endif
178+ # endif
179179
180180 return operator_new_aligned_impl (size, alignment);
181- # else
181+ # else
182182 void * p = nullptr ;
183183 try {
184184 p = ::operator new (size, alignment);
185185 } catch (...) {
186186 }
187187 return p;
188- # endif
188+ # endif
189189}
190190
191191_LIBCPP_OVERRIDABLE_FUNCTION (_ZnamSt11align_val_t, void *, operator new [], (size_t size, std::align_val_t alignment))
@@ -203,17 +203,17 @@ _LIBCPP_WEAK void* operator new[](size_t size, std::align_val_t alignment, const
203203 " nothrow_t)` to fulfill its contract (since it should return nullptr upon failure). Please make sure you "
204204 " override "
205205 " `operator new[](size_t, align_val_t, nothrow_t)` as well." );
206- # endif
206+ # endif
207207
208208 return operator_new_aligned_impl (size, alignment);
209- # else
209+ # else
210210 void * p = nullptr ;
211211 try {
212212 p = ::operator new [](size, alignment);
213213 } catch (...) {
214214 }
215215 return p;
216- # endif
216+ # endif
217217}
218218
219219_LIBCPP_WEAK void operator delete (void * ptr, std::align_val_t ) noexcept { std::__libcpp_aligned_free (ptr); }
0 commit comments