[compiler-rt] [compiler-rt][Fuzzer] implements SetThreadName for darwin. (PR #77014)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 4 14:21:30 PST 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 cb7fe9ad4c3103d90c20d55819a9e69ab66ab3d0 999ec39ea3c079f099cb7a984db149505c79faee -- compiler-rt/lib/fuzzer/FuzzerDriver.cpp compiler-rt/lib/fuzzer/FuzzerUtil.h compiler-rt/lib/fuzzer/FuzzerUtilDarwin.cpp compiler-rt/lib/fuzzer/FuzzerUtilFuchsia.cpp compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/compiler-rt/lib/fuzzer/FuzzerDriver.cpp b/compiler-rt/lib/fuzzer/FuzzerDriver.cpp
index c2b5b4307a..463a5a728e 100644
--- a/compiler-rt/lib/fuzzer/FuzzerDriver.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerDriver.cpp
@@ -296,8 +296,8 @@ static int RunInMultipleProcesses(const std::vector<std::string> &Args,
   Pulse.detach();
   V.resize(NumWorkers);
   for (unsigned i = 0; i < NumWorkers; i++) {
-    V[i] = std::thread(WorkerThread, std::ref(Cmd), &Counter, NumJobs,
-                            &HasErrors);
+    V[i] =
+        std::thread(WorkerThread, std::ref(Cmd), &Counter, NumJobs, &HasErrors);
   }
   for (auto &T : V)
     T.join();

``````````

</details>


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


More information about the llvm-commits mailing list