[Lldb-commits] [lldb] [lldb] optionally match the `__debug` namespace for libstdc++ containers. (PR #140727)

via lldb-commits lldb-commits at lists.llvm.org
Tue May 20 06:14:42 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 HEAD~1...HEAD lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/DataFormatterStdMap.py lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMapWithDebug.py lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/DataFormatterStdVBool.py lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBoolWithDebug.py lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/DataFormatterStdVector.py lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVectorDebug.py lldb/test/API/functionalities/data-formatter/data-formatter-categories/TestDataFormatterCategories.py lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/map/TestDataFormatterStdMap.py lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/TestDataFormatterStdVBool.py lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/TestDataFormatterStdVector.py
``````````

</details>

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

``````````diff
--- data-formatter-categories/TestDataFormatterCategories.py	2025-05-20 12:53:21.000000 +0000
+++ data-formatter-categories/TestDataFormatterCategories.py	2025-05-20 13:14:05.595245 +0000
@@ -335,7 +335,7 @@
 
         # and also validate that one can print formatters for a language
         self.expect(
             "type summary list -l c++",
             substrs=["vector", "map", "list", "string"],
-            ordered=False
-        )
+            ordered=False,
+        )
--- data-formatter-stl/libstdcpp/map/DataFormatterStdMap.py	2025-05-20 12:53:21.000000 +0000
+++ data-formatter-stl/libstdcpp/map/DataFormatterStdMap.py	2025-05-20 13:14:05.657544 +0000
@@ -26,11 +26,13 @@
         pass
 
     def with_run_command(self, artifact_name: str, namespace: str = ""):
         """Test that that file and class static variables display correctly."""
         self.build()
-        self.runCmd("file " + self.getBuildArtifact(artifact_name), CURRENT_EXECUTABLE_SET)
+        self.runCmd(
+            "file " + self.getBuildArtifact(artifact_name), CURRENT_EXECUTABLE_SET
+        )
 
         lldbutil.run_break_set_by_source_regexp(self, "Set break point at this line.")
 
         self.runCmd("run", RUN_SUCCEEDED)
 
--- data-formatter-stl/libstdcpp/vbool/DataFormatterStdVBool.py	2025-05-20 12:53:21.000000 +0000
+++ data-formatter-stl/libstdcpp/vbool/DataFormatterStdVBool.py	2025-05-20 13:14:05.707746 +0000
@@ -2,12 +2,17 @@
 Test lldb data formatter subsystem.
 """
 
 from abc import abstractmethod
 from lldbsuite.test.decorators import add_test_categories
-from lldbsuite.test.lldbtest import CURRENT_EXECUTABLE_SET, RUN_SUCCEEDED, STOPPED_DUE_TO_BREAKPOINT, TestBase, \
-    line_number
+from lldbsuite.test.lldbtest import (
+    CURRENT_EXECUTABLE_SET,
+    RUN_SUCCEEDED,
+    STOPPED_DUE_TO_BREAKPOINT,
+    TestBase,
+    line_number,
+)
 from lldbsuite.test import lldbutil
 
 
 class StdVBoolDataFormatterBase(TestBase):
     def setUp(self):
@@ -21,11 +26,13 @@
         pass
 
     def with_run_command(self, artifact_name: str):
         """Test that that file and class static variables display correctly."""
         self.build()
-        self.runCmd("file " + self.getBuildArtifact(artifact_name), CURRENT_EXECUTABLE_SET)
+        self.runCmd(
+            "file " + self.getBuildArtifact(artifact_name), CURRENT_EXECUTABLE_SET
+        )
 
         lldbutil.run_break_set_by_file_and_line(
             self, "main.cpp", self.line, num_expected_locations=-1
         )
 

``````````

</details>


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


More information about the lldb-commits mailing list