[libcxx-commits] [libcxx] [libcxx] Make std::pair pretty-printer ABI-independent (PR #201768)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jun 5 00:37:12 PDT 2026
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 libcxx/utils/gdb/libcxx/printers.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
--- printers.py 2026-06-05 07:30:47.000000 +0000
+++ printers.py 2026-06-05 07:36:43.091190 +0000
@@ -179,10 +179,11 @@
def children(self):
if not self.val.type.fields():
return iter(())
return self._Children(self.val)
+
class StdPairPrinter(object):
"""Print a std::pair.
Print std::pair explicitly instead of relying on GDB's default struct
``````````
</details>
https://github.com/llvm/llvm-project/pull/201768
More information about the libcxx-commits
mailing list