[Lldb-commits] [lldb] [lldb-dap] Enabling instruction breakpoint support to lldb-dap. (PR #105278)

via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 20 12:29:47 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 31e55d461693df035049e09cbeeb8886ca2cb6d3 7e221825b8537f69e19cf366c446d9a09a4768fe --extensions cpp,h -- lldb/test/API/tools/lldb-dap/instruction-breakpoint/main.cpp lldb/tools/lldb-dap/InstructionBreakpoint.cpp lldb/tools/lldb-dap/InstructionBreakpoint.h lldb/tools/lldb-dap/DAP.h lldb/tools/lldb-dap/DAPForward.h lldb/tools/lldb-dap/JSONUtils.cpp lldb/tools/lldb-dap/JSONUtils.h lldb/tools/lldb-dap/lldb-dap.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/test/API/tools/lldb-dap/instruction-breakpoint/main.cpp b/lldb/test/API/tools/lldb-dap/instruction-breakpoint/main.cpp
index c4b72144b7..3c710d6417 100644
--- a/lldb/test/API/tools/lldb-dap/instruction-breakpoint/main.cpp
+++ b/lldb/test/API/tools/lldb-dap/instruction-breakpoint/main.cpp
@@ -3,13 +3,13 @@
 
 int function(int x) {
 
-  if (x == 0)// breakpoint 1
+  if (x == 0) // breakpoint 1
     return x;
 
   if ((x % 2) != 0)
     return x;
   else
-    return function(x-1) + x;
+    return function(x - 1) + x;
 }
 
 int main(int argc, char const *argv[]) {

``````````

</details>


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


More information about the lldb-commits mailing list