[libcxx-commits] [libcxxabi] [libc++] Remove noexcept from _impl functions (PR #74330)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Dec 4 07:31:41 PST 2023


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 374e8288e047da640090629879072e4fa3af31fe f5d466383694fe717e26a930c39798a9710280fb -- libcxxabi/test/test_memory_alloc.pass.cpp libcxxabi/src/stdlib_new_delete.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libcxxabi/test/test_memory_alloc.pass.cpp b/libcxxabi/test/test_memory_alloc.pass.cpp
index 3eb618e54f..a718cc642c 100644
--- a/libcxxabi/test/test_memory_alloc.pass.cpp
+++ b/libcxxabi/test/test_memory_alloc.pass.cpp
@@ -4,7 +4,7 @@
 // See https://llvm.org/LICENSE.txt for license information.
 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 //
-//===----------------------------------------------------------------------===// 
+//===----------------------------------------------------------------------===//
 
 #include <new>
 #include <cassert>
@@ -20,11 +20,10 @@ void my_new_handler() {
 int main(int, char**) {
   std::set_new_handler(my_new_handler);
   try {
-    void* x = operator new[] (std::numeric_limits<std::size_t>::max());
+    void* x = operator new[](std::numeric_limits<std::size_t>::max());
     (void)x;
     assert(false);
-  }
-  catch (std::bad_alloc const&) {
+  } catch (std::bad_alloc const&) {
     assert(new_handler_called == 1);
   } catch (...) {
     assert(false);

``````````

</details>


https://github.com/llvm/llvm-project/pull/74330


More information about the libcxx-commits mailing list