[llvm] [llvm][Support] Add support for thread naming under DragonFly BSD and Solaris/illumos (PR #106944)

via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 2 00:51:03 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 d2ce9dc85e5d94e19a69d4a72e7b9197447d480a bb31a84ee588dde3a7bdb767b38227413004f961 --extensions inc -- llvm/lib/Support/Unix/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 23d2c070af..285cc220dc 100644
--- a/llvm/lib/Support/Unix/Threading.inc
+++ b/llvm/lib/Support/Unix/Threading.inc
@@ -145,7 +145,8 @@ static constexpr uint32_t get_max_thread_name_length_impl() {
   return 31;
 #elif defined(__linux__) && HAVE_PTHREAD_SETNAME_NP
   return 16;
-#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) ||                   \
+    defined(__DragonFly__)
   return 16;
 #elif defined(__OpenBSD__)
   return 32;

``````````

</details>


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


More information about the llvm-commits mailing list