[llvm] Enable using threads on z/OS (PR #171847)

via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 11 08:52:13 PST 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 origin/main HEAD --extensions inc,h,cpp -- llvm/include/llvm/Support/thread.h llvm/lib/Support/Parallel.cpp llvm/lib/Support/Unix/Threading.inc --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/llvm/include/llvm/Support/thread.h b/llvm/include/llvm/Support/thread.h
index aad82e485..5ae76e98d 100644
--- a/llvm/include/llvm/Support/thread.h
+++ b/llvm/include/llvm/Support/thread.h
@@ -101,13 +101,9 @@ public:
     return *this;
   }
 
-  bool is_null() const noexcept {
-    return get_id() == 0;
-  }
+  bool is_null() const noexcept { return get_id() == 0; }
 
-  bool joinable() const noexcept {
-    return !is_null();
-  }
+  bool joinable() const noexcept { return !is_null(); }
 
   inline id get_id() const noexcept;
 

``````````

</details>


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


More information about the llvm-commits mailing list