[Lldb-commits] [lldb] SBThread::StepInstruction shouldn't discard other plans (PR #97493)

via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 2 17:20:11 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 57555c6a0a96790bf1408b056405abe07899ead4 3fba16eaee25b1d63907640b79019309e9c019a7 -- lldb/source/API/SBThread.cpp lldb/test/API/python_api/thread/main.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/test/API/python_api/thread/main.cpp b/lldb/test/API/python_api/thread/main.cpp
index d4b0ad2372..f36838a6a7 100644
--- a/lldb/test/API/python_api/thread/main.cpp
+++ b/lldb/test/API/python_api/thread/main.cpp
@@ -5,21 +5,20 @@
 char my_char = 'u';
 int my_int = 0;
 
-void
-call_me(bool should_spin) {
-    int counter = 0;
-    if (should_spin) {
-        while (1)
-            counter++;  // Set a breakpoint in call_me
-     }
+void call_me(bool should_spin) {
+  int counter = 0;
+  if (should_spin) {
+    while (1)
+      counter++; // Set a breakpoint in call_me
+  }
 }
 
 int main (int argc, char const *argv[])
 {
-    call_me(false);
-    for (int i = 0; i < 3; ++i) {
-        printf("my_char='%c'\n", my_char);
-        ++my_char;
+  call_me(false);
+  for (int i = 0; i < 3; ++i) {
+    printf("my_char='%c'\n", my_char);
+    ++my_char;
     }
 
     printf("after the loop: my_char='%c'\n", my_char); // 'my_char' should print out as 'x'.

``````````

</details>


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


More information about the lldb-commits mailing list