[libc-commits] [libc] [libc] Add ucontext types and headers (PR #191789)

via libc-commits libc-commits at lists.llvm.org
Mon Apr 13 03:30:16 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 h -- libc/include/llvm-libc-types/mcontext_t.h libc/include/llvm-libc-types/ucontext_t.h libc/include/llvm-libc-types/x86_64/mcontext_t.h libc/include/llvm-libc-types/x86_64/ucontext_t.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/include/llvm-libc-types/x86_64/ucontext_t.h b/libc/include/llvm-libc-types/x86_64/ucontext_t.h
index bfb6f0927..38c53f646 100644
--- a/libc/include/llvm-libc-types/x86_64/ucontext_t.h
+++ b/libc/include/llvm-libc-types/x86_64/ucontext_t.h
@@ -11,9 +11,9 @@
 #ifndef LLVM_LIBC_TYPES_UCONTEXT_T_H
 #define LLVM_LIBC_TYPES_UCONTEXT_T_H
 
-#include "mcontext_t.h"
 #include "../sigset_t.h"
 #include "../stack_t.h"
+#include "mcontext_t.h"
 
 typedef struct alignas(16) ucontext_t {
   unsigned long uc_flags;

``````````

</details>


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


More information about the libc-commits mailing list