[libcxx-commits] [libcxxabi] [libc++abi] Fix test failures with GCC 14 (PR #95759)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jun 17 02:33:02 PDT 2024


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 338cbfef03e0ab58d7b52f3301928c58b194a1b4 caee021c084d9e8fb33c19225e9c3e1ce910c998 -- libcxxabi/include/cxxabi.h libcxxabi/src/cxa_exception.cpp libcxxabi/test/catch_const_pointer_nullptr.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxxabi/src/cxa_exception.cpp b/libcxxabi/src/cxa_exception.cpp
index 014e6e8ac8..92901a83bf 100644
--- a/libcxxabi/src/cxa_exception.cpp
+++ b/libcxxabi/src/cxa_exception.cpp
@@ -590,8 +590,8 @@ void __cxa_end_catch() {
 }
 
 void __cxa_call_terminate(void* unwind_arg) throw() {
-    __cxa_begin_catch(unwind_arg);
-    std::terminate();
+  __cxa_begin_catch(unwind_arg);
+  std::terminate();
 }
 
 // Note:  exception_header may be masquerading as a __cxa_dependent_exception

``````````

</details>


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


More information about the libcxx-commits mailing list