[Lldb-commits] [lldb] [lldb-dap] Adjusting how repl-mode auto determines commands vs variable expressions. (PR #78005)

via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 12 17:07:45 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {darker}-->


:warning: Python code formatter, darker found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
darker --check --diff -r 3edf82d5566ed5c9898f52b5591c05f6366d6bac...6290aaa803324f6942e642b888f41966f4cc3709 lldb/test/API/tools/lldb-dap/completions/TestDAP_completions.py lldb/test/API/tools/lldb-dap/evaluate/TestDAP_evaluate.py
``````````

</details>

<details>
<summary>
View the diff from darker here.
</summary>

``````````diff
--- evaluate/TestDAP_evaluate.py	2024-01-13 01:02:44.000000 +0000
+++ evaluate/TestDAP_evaluate.py	2024-01-13 01:07:38.975086 +0000
@@ -86,11 +86,11 @@
                 "struct2", "0x.* {foo:16}" if enableAutoVariableSummaries else "0x.*"
             )
             self.assertEvaluate("struct3", "0x.*0")
 
         if context == "repl":
-            # In the repl context expressions may be interpreted as lldb 
+            # In the repl context expressions may be interpreted as lldb
             # commands since no variables have the same name as the command.
             self.assertEvaluate("var", r"\(lldb\) var\n.*")
         else:
             self.assertEvaluateFailure("var")  # local variable of a_function
 

``````````

</details>


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


More information about the lldb-commits mailing list