[libc-commits] [libc] [libc][stdlib] move abort to a header library and cleanup its usage (PR #190845)

via libc-commits libc-commits at lists.llvm.org
Tue Apr 7 13:36:19 PDT 2026


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 origin/main HEAD --extensions cpp,h -- libc/src/stdlib/abort_utils.h libc/src/assert/generic/__assert_fail.cpp libc/src/assert/gpu/__assert_fail.cpp libc/src/compiler/generic/__stack_chk_fail.cpp libc/test/integration/src/stdlib/abort_test.cpp libc/test/src/assert/assert_test.cpp libc/src/stdlib/abort.cpp libc/src/stdlib/baremetal/abort_utils.h libc/src/stdlib/gpu/abort_utils.h --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/libc/src/stdlib/baremetal/abort_utils.h b/libc/src/stdlib/baremetal/abort_utils.h
index 73a74a81d..f1c21160e 100644
--- a/libc/src/stdlib/baremetal/abort_utils.h
+++ b/libc/src/stdlib/baremetal/abort_utils.h
@@ -1,4 +1,5 @@
-//===-- Internal header for baremetal abort ----------------------*- C++ -*-===//
+//===-- Internal header for baremetal abort ----------------------*- C++
+//-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/libc/src/stdlib/gpu/abort_utils.h b/libc/src/stdlib/gpu/abort_utils.h
index afc1214f8..77b880606 100644
--- a/libc/src/stdlib/gpu/abort_utils.h
+++ b/libc/src/stdlib/gpu/abort_utils.h
@@ -1,4 +1,5 @@
-//===-- Internal header for GPU abort ----------------------------*- C++ -*-===//
+//===-- Internal header for GPU abort ----------------------------*- C++
+//-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

``````````

</details>


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


More information about the libc-commits mailing list