public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-8059] libstdc++: Define _versioned_namespace in xmethods.py
@ 2023-11-13 15:45 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2023-11-13 15:45 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:cc2e2291a2820929ff6562cc375f53e2f1713ac5
commit r13-8059-gcc2e2291a2820929ff6562cc375f53e2f1713ac5
Author: Tom Tromey <tromey@adacore.com>
Date: Tue Oct 3 11:08:02 2023 -0600
libstdc++: Define _versioned_namespace in xmethods.py
flake8 pointed out that is_specialization_of in xmethods.py looks at a
global that wasn't added to the file. This patch correct the
oversight.
libstdc++-v3/ChangeLog:
* python/libstdcxx/v6/xmethods.py (_versioned_namespace):
Define.
(cherry picked from commit 83ec6e80ff0d56342fc066c2ef649036c0983529)
Diff:
---
libstdc++-v3/python/libstdcxx/v6/xmethods.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libstdc++-v3/python/libstdcxx/v6/xmethods.py b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
index 844c8a2105a..8ccf57c4d6b 100644
--- a/libstdc++-v3/python/libstdcxx/v6/xmethods.py
+++ b/libstdc++-v3/python/libstdcxx/v6/xmethods.py
@@ -28,6 +28,8 @@ def get_bool_type():
def get_std_size_type():
return gdb.lookup_type('std::size_t')
+_versioned_namespace = '__8::'
+
def is_specialization_of(x, template_name):
"""
Test whether a type is a specialization of the named class template.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-13 15:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-13 15:45 [gcc r13-8059] libstdc++: Define _versioned_namespace in xmethods.py Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).