aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/tests/testimplicitconversions.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-12-02 10:35:13 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-12-02 10:27:30 +0000
commit844f76cf8e01377fa3de6ac8c61eb8342c0c31f1 (patch)
tree386a3cccc9226590e526cd64e0332a128c264146 /sources/shiboken6/ApiExtractor/tests/testimplicitconversions.cpp
parentaf294cd6e1a55ee50ccb1dee66a401386bc351db (diff)
shiboken6: Remove deprecated typesystem tags
<remove> and <access> were deprecated in favor of attributes on the functions in PySide2. Similarly for <rename>, but it is still used as a child of <modify-argument>. Leave this usage in place, but add parsing of the rename attribute to <modify-argument>. Change-Id: I8e80ba13a3e4af1df0448bd0de034d242a9fdeb4 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/tests/testimplicitconversions.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/tests/testimplicitconversions.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/sources/shiboken6/ApiExtractor/tests/testimplicitconversions.cpp b/sources/shiboken6/ApiExtractor/tests/testimplicitconversions.cpp
index 928122967..9dcdec975 100644
--- a/sources/shiboken6/ApiExtractor/tests/testimplicitconversions.cpp
+++ b/sources/shiboken6/ApiExtractor/tests/testimplicitconversions.cpp
@@ -73,15 +73,14 @@ void TestImplicitConversions::testWithModifiedVisibility()
A(const B&);\n\
};\n\
class B {};\n";
- const char* xmlCode = "\
- <typesystem package='Foo'>\n\
- <value-type name='A'>\n\
- <modify-function signature='A(const B&amp;)'>\n\
- <access modifier='private'/>\n\
- </modify-function>\n\
- </value-type>\n\
- <value-type name='B'/>\n\
- </typesystem>\n";
+ const char* xmlCode = R"(
+<typesystem package='Foo'>
+ <value-type name='A'>
+ <modify-function signature='A(const B&amp;)' access='private'/>
+ </value-type>
+ <value-type name='B'/>
+</typesystem>
+)";
QScopedPointer<AbstractMetaBuilder> builder(TestUtil::parse(cppCode, xmlCode));
QVERIFY(!builder.isNull());
AbstractMetaClassList classes = builder->classes();