[Lldb-commits] [lldb] [LLDB] Display artificial __promise and __coro_frame variables. (PR #71928)

via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 10 03:58:19 PST 2023


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 bd611264993f64decbce178d460caf1d1cb05f59..1ac7e612bf6917af4e347407fb98affa9bb296c6 lldb/test/API/functionalities/data-formatter/data-formatter-stl/generic/coroutine_handle/TestCoroutineHandle.py
``````````

</details>

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

``````````diff
--- TestCoroutineHandle.py	2023-11-10 11:44:20.000000 +0000
+++ TestCoroutineHandle.py	2023-11-10 11:58:11.960396 +0000
@@ -80,17 +80,14 @@
 
         process = self.process()
 
         # Break at a coroutine body
         lldbutil.continue_to_source_breakpoint(
-          self, process, "// Break at co_yield", lldb.SBFileSpec("main.cpp", False)
+            self, process, "// Break at co_yield", lldb.SBFileSpec("main.cpp", False)
         )
         # Expect artificial variables to be displayed
-        self.expect(
-          "frame variable",
-          substrs=['__promise', '__coro_frame']
-        )
+        self.expect("frame variable", substrs=["__promise", "__coro_frame"])
 
         # Run until after the `co_yield`
         lldbutil.continue_to_source_breakpoint(
             self, process, "// Break after co_yield", lldb.SBFileSpec("main.cpp", False)
         )

``````````

</details>


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


More information about the lldb-commits mailing list