[libc-commits] [libc] [libc] Add `returns_twice` attribute to `setjmp(3)` (PR #124370)

Alan Zhao via libc-commits libc-commits at lists.llvm.org
Mon Jan 27 11:23:47 PST 2025


================
@@ -29,7 +29,8 @@ namespace LIBC_NAMESPACE_DECL {
 #ifdef LIBC_COMPILER_IS_GCC
 [[gnu::nothrow]]
 #endif
-int setjmp(jmp_buf buf);
+[[gnu::returns_twice]] int
----------------
alanzhao1 wrote:

Weird formatting is due to `git clang-format`

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


More information about the libc-commits mailing list