[Lldb-commits] [lldb] [lldb] Fix FindProcessImpl() for iOS simulators (PR #139174)
via lldb-commits
lldb-commits at lists.llvm.org
Sat Jun 21 14:41:31 PDT 2025
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
More information about the lldb-commits
mailing list