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/typesystemparser.h | |
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/typesystemparser.h')
-rw-r--r-- | sources/shiboken6/ApiExtractor/typesystemparser.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sources/shiboken6/ApiExtractor/typesystemparser.h b/sources/shiboken6/ApiExtractor/typesystemparser.h index af310d8dc..8bef9482e 100644 --- a/sources/shiboken6/ApiExtractor/typesystemparser.h +++ b/sources/shiboken6/ApiExtractor/typesystemparser.h @@ -99,9 +99,7 @@ class StackElement CodeSnipMask = 0xc000, // Function modifier tags (0x010000, 0x020000, ... , 0xf00000) - Access = 0x010000, - Removal = 0x020000, - Rename = 0x040000, + Rename = 0x040000, // (modify-argument) ModifyArgument = 0x080000, Thread = 0x100000, FunctionModifiers = 0xff0000, @@ -226,10 +224,8 @@ private: QXmlStreamAttributes *attributes); bool parseDefineOwnership(const QXmlStreamReader &, const StackElement &topElement, QXmlStreamAttributes *); - bool parseRemoval(const QXmlStreamReader &, const StackElement &topElement, - QXmlStreamAttributes *); - bool parseRename(const QXmlStreamReader &, StackElement::ElementType type, - const StackElement &topElement, QXmlStreamAttributes *); + bool parseRename(const QXmlStreamReader &, const StackElement &topElement, + QXmlStreamAttributes *); bool parseModifyField(const QXmlStreamReader &, QXmlStreamAttributes *); bool parseAddFunction(const QXmlStreamReader &, const StackElement &topElement, StackElement::ElementType t, QXmlStreamAttributes *); |