[libc-commits] [libc] [libc] implement sigsetjmp/siglongjmp for x86-64 (PR #136072)
via libc-commits
libc-commits at lists.llvm.org
Thu Apr 17 06:12:40 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 -- libc/src/setjmp/linux/sigsetjmp_epilogue.cpp libc/src/setjmp/siglongjmp.cpp libc/src/setjmp/siglongjmp.h libc/src/setjmp/sigsetjmp.h libc/src/setjmp/sigsetjmp_epilogue.h libc/src/setjmp/x86_64/sigsetjmp.cpp libc/test/src/setjmp/sigsetjmp_test.cpp libc/include/llvm-libc-types/jmp_buf.h libc/src/setjmp/setjmp_impl.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/setjmp/setjmp_impl.h b/libc/src/setjmp/setjmp_impl.h
index 351383390..c89d6bc07 100644
--- a/libc/src/setjmp/setjmp_impl.h
+++ b/libc/src/setjmp/setjmp_impl.h
@@ -29,7 +29,8 @@ namespace LIBC_NAMESPACE_DECL {
#ifdef LIBC_COMPILER_IS_GCC
[[gnu::nothrow]]
#endif
-[[gnu::returns_twice]] int setjmp(jmp_buf buf);
+[[gnu::returns_twice]] int
+setjmp(jmp_buf buf);
} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/setjmp/sigsetjmp.h b/libc/src/setjmp/sigsetjmp.h
index 6bbfda8a9..ef060c8b3 100644
--- a/libc/src/setjmp/sigsetjmp.h
+++ b/libc/src/setjmp/sigsetjmp.h
@@ -18,7 +18,8 @@ namespace LIBC_NAMESPACE_DECL {
#ifdef LIBC_COMPILER_IS_GCC
[[gnu::nothrow]]
#endif
-[[gnu::returns_twice]] int sigsetjmp(sigjmp_buf buf, int savesigs);
+[[gnu::returns_twice]] int
+sigsetjmp(sigjmp_buf buf, int savesigs);
} // namespace LIBC_NAMESPACE_DECL
``````````
</details>
https://github.com/llvm/llvm-project/pull/136072
More information about the libc-commits
mailing list