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 6e0fc155782ff5307245a85c7b037a2998ec6c86 
10bc5a512b56238328b025303345e47708927d6e --extensions cpp -- 
lldb/unittests/Process/elf-core/ThreadElfCoreTest.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/unittests/Process/elf-core/ThreadElfCoreTest.cpp 
b/lldb/unittests/Process/elf-core/ThreadElfCoreTest.cpp
index 5cf5f97182..0c67a65eb5 100644
--- a/lldb/unittests/Process/elf-core/ThreadElfCoreTest.cpp
+++ b/lldb/unittests/Process/elf-core/ThreadElfCoreTest.cpp
@@ -25,9 +25,7 @@
 
 #include <sys/syscall.h>
 
-pid_t _workaround_gettid() {
-  return ((pid_t)syscall(SYS_gettid));
-}
+pid_t _workaround_gettid() { return ((pid_t)syscall(SYS_gettid)); }
 
 using namespace lldb_private;
 
@@ -176,5 +174,6 @@ TEST_F(ElfCoreTest, PopulatePrStatusTest) {
   ASSERT_EQ(prstatus_opt->pr_pid, static_cast<uint32_t>(_workaround_gettid()));
   ASSERT_EQ(prstatus_opt->pr_ppid, static_cast<uint32_t>(getppid()));
   ASSERT_EQ(prstatus_opt->pr_pgrp, static_cast<uint32_t>(getpgrp()));
-  ASSERT_EQ(prstatus_opt->pr_sid, 
static_cast<uint32_t>(getsid(_workaround_gettid())));
+  ASSERT_EQ(prstatus_opt->pr_sid,
+            static_cast<uint32_t>(getsid(_workaround_gettid())));
 }

``````````

</details>


https://github.com/llvm/llvm-project/pull/104831
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to