[libc-commits] [libc] [libc] Make it possible to join the main thread (PR #221177)
via libc-commits
libc-commits at lists.llvm.org
Wed Sep 16 03:02:01 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 -- libc/test/integration/src/pthread/pthread_join_main_test.cpp libc/src/__support/threads/linux/thread.cpp libc/startup/linux/do_start.cpp libc/test/integration/src/pthread/pthread_getattr_np_test.cpp --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/startup/linux/do_start.cpp b/libc/startup/linux/do_start.cpp
index 7de1866a3..b38929b66 100644
--- a/libc/startup/linux/do_start.cpp
+++ b/libc/startup/linux/do_start.cpp
@@ -18,8 +18,8 @@
#include "src/__support/OSUtil/linux/auxv.h"
#include "src/__support/OSUtil/syscall.h"
#include "src/__support/macros/config.h"
-#include "src/__support/threads/tcb.h"
#include "src/__support/threads/linux/futex_utils.h"
+#include "src/__support/threads/tcb.h"
#include "src/__support/threads/thread.h"
#include "src/errno/program_invocation_name.h"
#include "src/errno/program_invocation_short_name.h"
``````````
</details>
https://github.com/llvm/llvm-project/pull/221177
More information about the libc-commits
mailing list