[Lldb-commits] [lldb] [lldb] Better matching of types in anonymous namespaces (PR #102111)

via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 6 01:50:20 PDT 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 d337f5aa59fecd2413b076ed9573e378c57c1307...c6936f3d5d0592babe9082e867b179af594c447b lldb/test/API/lang/cpp/dynamic-value/TestDynamicValue.py
``````````

</details>

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

``````````diff
--- TestDynamicValue.py	2024-08-06 08:42:30.000000 +0000
+++ TestDynamicValue.py	2024-08-06 08:49:54.831969 +0000
@@ -182,11 +182,10 @@
         self.assertTrue(anotherA_value)
         anotherA_loc = int(anotherA_value.GetValue(), 16)
         self.assertEqual(anotherA_loc, reallyA_loc)
         self.assertEqual(anotherA_value.GetTypeName().find("B"), -1)
 
-
         # Finally do the same with a B in an anonymous namespace.
         threads = lldbutil.continue_to_breakpoint(process, do_something_bpt)
         self.assertEqual(len(threads), 1)
         thread = threads[0]
 
@@ -195,11 +194,10 @@
         self.assertTrue(anotherA_value)
         self.assertIn("B", anotherA_value.GetTypeName())
         anon_b_value = anotherA_value.GetChildMemberWithName("m_anon_b_value")
         self.assertTrue(anon_b_value)
         self.assertEqual(anon_b_value.GetValueAsSigned(), 47)
-
 
     def examine_value_object_of_this_ptr(
         self, this_static, this_dynamic, dynamic_location
     ):
         # Get "this" as its static value

``````````

</details>


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


More information about the lldb-commits mailing list