[libcxx-commits] [libcxx] [libcxxabi] varconst/hardening semantics introduce (PR #148268)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 11 11:02:28 PDT 2025


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 HEAD~1 HEAD --extensions ,h,cpp -- libcxx/include/__log_hardening_failure libcxx/include/__verbose_trap libcxx/src/log_hardening_failure.cpp libcxxabi/src/log_error_and_continue.cpp libcxxabi/src/log_error_and_continue.h libcxx/include/__config libcxx/include/__configuration/availability.h libcxx/test/support/check_assertion.h libcxxabi/src/demangle/DemangleConfig.h
``````````

</details>

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

``````````diff
diff --git a/libcxxabi/src/log_error_and_continue.cpp b/libcxxabi/src/log_error_and_continue.cpp
index 51088cd11..51cee6d56 100644
--- a/libcxxabi/src/log_error_and_continue.cpp
+++ b/libcxxabi/src/log_error_and_continue.cpp
@@ -18,11 +18,10 @@ extern "C" void android_set_abort_message(const char* msg);
 
 #if defined(__APPLE__) && __has_include(<os/reason_private.h>)
 #  include <os/reason_private.h>
-#   define _LIBCXXABI_USE_OS_FAULT
+#  define _LIBCXXABI_USE_OS_FAULT
 #endif
 
-void __log_error_and_continue(const char* message)
-{
+void __log_error_and_continue(const char* message) {
   // On Apple platforms, use the `os_fault_with_payload` OS function that simulates a crash.
 #if defined(_LIBCXXABI_USE_OS_FAULT)
   os_fault_with_payload(

``````````

</details>


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


More information about the libcxx-commits mailing list