[Lldb-commits] [lldb] [lldb][SymbolFileDWARF] CompleteType: Lookup type in the declaration … (PR #120569)

via lldb-commits lldb-commits at lists.llvm.org
Thu Dec 19 04:46:56 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 3769fcb3e78eba5f3e34d1c2dfa994625edb005a...9aa49efdcde5887e8de6bcd6cfbb08c0a499e24b lldb/test/API/lang/cpp/typedef-to-outer-fwd/TestTypedefToOuterFwd.py
``````````

</details>

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

``````````diff
--- TestTypedefToOuterFwd.py	2024-12-19 12:38:35.000000 +0000
+++ TestTypedefToOuterFwd.py	2024-12-19 12:46:27.452377 +0000
@@ -3,30 +3,31 @@
 from lldbsuite.test.lldbtest import *
 from lldbsuite.test import lldbutil
 
 
 class TestCaseTypedefToOuterFwd(TestBase):
-    '''
+    """
     We are stopped in main.o, which only sees a forward declaration
     of FooImpl. We then try to get the FooImpl::Ref typedef (whose
     definition is in lib.o). Make sure we correctly resolve this
     typedef.
-    '''
+    """
+
     def test(self):
         self.build()
         (_, _, thread, _) = lldbutil.run_to_source_breakpoint(
             self, "return", lldb.SBFileSpec("main.cpp")
         )
 
-        foo = thread.frames[0].FindVariable('foo')
+        foo = thread.frames[0].FindVariable("foo")
         self.assertSuccess(foo.GetError(), "Found foo")
 
         foo_type = foo.GetType()
         self.assertTrue(foo_type)
 
         impl = foo_type.GetPointeeType()
         self.assertTrue(impl)
 
-        ref = impl.FindDirectNestedType('Ref')
+        ref = impl.FindDirectNestedType("Ref")
         self.assertTrue(ref)
 
         self.assertEqual(ref.GetCanonicalType(), foo_type)

``````````

</details>


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


More information about the lldb-commits mailing list