[llvm] [Support] Include Support/thread.h before api implementations (PR #111175)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 4 08:38:51 PDT 2024
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 1e5e153485b817422c311f9326e80781a83ea7bc 2d41b061729e3c7e7c8af3cf1ba89ba9170e4c50 --extensions inc -- llvm/lib/Support/Unix/Threading.inc llvm/lib/Support/Windows/Threading.inc
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Support/Unix/Threading.inc b/llvm/lib/Support/Unix/Threading.inc
index ca855eb116..c7b4c7af3b 100644
--- a/llvm/lib/Support/Unix/Threading.inc
+++ b/llvm/lib/Support/Unix/Threading.inc
@@ -33,7 +33,6 @@
#include <pthread_np.h> // For pthread_getthreadid_np() / pthread_set_name_np()
#endif
-
// Must be included after Threading.inc to provide definition for llvm::thread
// because FreeBSD's condvar.h (included by user.h) misuses the "thread"
// keyword.
``````````
</details>
https://github.com/llvm/llvm-project/pull/111175
More information about the llvm-commits
mailing list