[Lldb-commits] [lldb] [LLDB][DWARF] Use the same qualified name computation for Rust (PR #165840)

via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 31 02:45:11 PDT 2025


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 origin/main...HEAD lldb/test/API/lang/rust/enum-variant-same-name/RustEnumValue.py lldb/test/API/lang/rust/enum-variant-same-name/TestRustEnumVariantSameName.py
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
--- TestRustEnumVariantSameName.py	2025-10-31 09:40:41.000000 +0000
+++ TestRustEnumVariantSameName.py	2025-10-31 09:44:34.937061 +0000
@@ -3,10 +3,11 @@
 
 import lldb
 from lldbsuite.test.decorators import *
 from lldbsuite.test.lldbtest import *
 from RustEnumValue import RustEnumValue
+
 
 class TestRustEnumStructs(TestBase):
     def setUp(self):
         TestBase.setUp(self)
         src_dir = self.getSourceDir()
@@ -25,8 +26,11 @@
         value = self.getFromGlobal("ENUM_INSTANCE").getCurrentValue()
         self.assertEqual(value.GetType().GetDisplayTypeName(), "main::A::A")
 
         value_b = RustEnumValue(value.GetChildAtIndex(0))
         self.assertEqual(
-            value_b.getCurrentValue().GetChildAtIndex(0).GetData().GetUnsignedInt8(lldb.SBError(), 0),
-            10
+            value_b.getCurrentValue()
+            .GetChildAtIndex(0)
+            .GetData()
+            .GetUnsignedInt8(lldb.SBError(), 0),
+            10,
         )

``````````

</details>


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


More information about the lldb-commits mailing list