[libcxx-commits] [libcxx] [libc++] Fix mi-mode in GDB pretty printers (PR #120951)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Dec 23 01:21:04 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 4b35dd57b88a59b169c3471cbc398113d3bf98e8...af8ece8640f3a21b3ccfdb0553a116093a897208 libcxx/utils/gdb/libcxx/printers.py
``````````
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- printers.py 2024-12-23 09:00:39.000000 +0000
+++ printers.py 2024-12-23 09:20:37.870890 +0000
@@ -514,11 +514,11 @@
class StdQueueOrStackPrinter(object):
"""Print a std::queue or std::stack."""
def __init__(self, val):
self.typename = _remove_generics(_prettify_typename(val.type))
- self.visualizer = gdb.default_visualizer(val['c'])
+ self.visualizer = gdb.default_visualizer(val["c"])
def to_string(self):
return "%s wrapping: %s" % (self.typename, self.visualizer.to_string())
def children(self):
@@ -531,11 +531,11 @@
class StdPriorityQueuePrinter(object):
"""Print a std::priority_queue."""
def __init__(self, val):
self.typename = _remove_generics(_prettify_typename(val.type))
- self.visualizer = gdb.default_visualizer(val['c'])
+ self.visualizer = gdb.default_visualizer(val["c"])
def to_string(self):
# TODO(tamur): It would be nice to print the top element. The technical
# difficulty is that, the implementation refers to the underlying
# container, which is a generic class. libstdcxx pretty printers do not
``````````
</details>
https://github.com/llvm/llvm-project/pull/120951
More information about the libcxx-commits
mailing list