[Lldb-commits] [lldb] [lldb][NFC] Simplify macOS thread name fetching. (PR #111684)

via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 9 15:21:32 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 e85fcb763173590fdcd5cb922b7ca1fc97cf170b aefa120446a4c31fe9569d76ae3950c29d8d35e9 --extensions cpp,h -- lldb/tools/debugserver/source/MacOSX/MachThread.cpp lldb/tools/debugserver/source/MacOSX/MachThread.h
``````````

</details>

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

``````````diff
diff --git a/lldb/tools/debugserver/source/MacOSX/MachThread.cpp b/lldb/tools/debugserver/source/MacOSX/MachThread.cpp
index bce60ed94e..de2bebfcec 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachThread.cpp
+++ b/lldb/tools/debugserver/source/MacOSX/MachThread.cpp
@@ -274,8 +274,9 @@ bool MachThread::GetExtendedInfo(thread_t thread,
                                  struct thread_extended_info *extendedInfoPtr) {
   if (MachPortNumberIsValid(thread)) {
     mach_msg_type_number_t info_count = THREAD_EXTENDED_INFO_COUNT;
-    kern_return_t err = ::thread_info(thread, THREAD_EXTENDED_INFO,
-                                      (thread_info_t)extendedInfoPtr, &info_count);
+    kern_return_t err =
+        ::thread_info(thread, THREAD_EXTENDED_INFO,
+                      (thread_info_t)extendedInfoPtr, &info_count);
     if (err == KERN_SUCCESS)
       return true;
   }

``````````

</details>


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


More information about the lldb-commits mailing list