diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-12-02 10:35:13 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-12-02 10:27:30 +0000 |
commit | 844f76cf8e01377fa3de6ac8c61eb8342c0c31f1 (patch) | |
tree | 386a3cccc9226590e526cd64e0332a128c264146 /sources/shiboken6/ApiExtractor/tests/testmodifyfunction.cpp | |
parent | af294cd6e1a55ee50ccb1dee66a401386bc351db (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/testmodifyfunction.cpp')
-rw-r--r-- | sources/shiboken6/ApiExtractor/tests/testmodifyfunction.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sources/shiboken6/ApiExtractor/tests/testmodifyfunction.cpp b/sources/shiboken6/ApiExtractor/tests/testmodifyfunction.cpp index 0fa07b75c..ebee345a0 100644 --- a/sources/shiboken6/ApiExtractor/tests/testmodifyfunction.cpp +++ b/sources/shiboken6/ApiExtractor/tests/testmodifyfunction.cpp @@ -54,13 +54,12 @@ void TestModifyFunction::testRenameArgument() <primitive-type name='int'/>\n\ <object-type name='A'>\n\ <modify-function signature='"; - const char xmlCode2[] = "'>\n\ - <modify-argument index='1'>\n\ - <rename to='otherArg'/>\n\ - </modify-argument>\n\ - </modify-function>\n\ - </object-type>\n\ - </typesystem>\n"; + const char xmlCode2[] = R"('> + <modify-argument index='1' rename='otherArg'/> + </modify-function> + </object-type> + </typesystem> +)"; const QByteArray xmlCode = QByteArray(xmlCode1) + pattern + QByteArray(xmlCode2); QScopedPointer<AbstractMetaBuilder> builder(TestUtil::parse(cppCode, xmlCode.constData(), false)); |