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 HEAD~1 HEAD --extensions cpp -- 
lldb/test/API/macosx/simulator/hello.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/test/API/macosx/simulator/hello.cpp 
b/lldb/test/API/macosx/simulator/hello.cpp
index 9d694c127..4c697059e 100644
--- a/lldb/test/API/macosx/simulator/hello.cpp
+++ b/lldb/test/API/macosx/simulator/hello.cpp
@@ -5,16 +5,14 @@
 #endif
 
 static void print_pid() {
-  #if defined(_WIN32)
-    fprintf(stderr, "PID: %d\n", ::GetCurrentProcessId());
-  #else
-    fprintf(stderr, "PID: %d\n", getpid());
-  #endif
+#if defined(_WIN32)
+  fprintf(stderr, "PID: %d\n", ::GetCurrentProcessId());
+#else
+  fprintf(stderr, "PID: %d\n", getpid());
+#endif
 }
 
-static void sleep() {
-  std::this_thread::sleep_for(std::chrono::seconds(10));
-}
+static void sleep() { std::this_thread::sleep_for(std::chrono::seconds(10)); }
 
 int main(int argc, char **argv) {
   print_pid();

``````````

</details>


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

Reply via email to