]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Define _versioned_namespace in xmethods.py
authorTom Tromey <tromey@adacore.com>
Tue, 3 Oct 2023 17:08:02 +0000 (11:08 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 4 Oct 2023 14:23:30 +0000 (08:23 -0600)
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.

libstdc++-v3/python/libstdcxx/v6/xmethods.py

index 844c8a2105a870fef05fef6cf869795c1b237ff3..8ccf57c4d6b9eb7626a60979e2cc6a4b048e723b 100644 (file)
@@ -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.