diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-07-23 15:53:03 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-07-26 08:24:29 +0000 |
commit | 831b22fcd6eb9b45c9e7834799a91698ec00a6a4 (patch) | |
tree | 536212de56d2aec949f504b275dcb77ff2d76540 /sources/shiboken2/ApiExtractor/parser/codemodel.h | |
parent | f645e5c8fe02bc6eb177061cfec4fa5bddab05d3 (diff) |
shiboken: Add support for type aliases (using)
QAbstractRayCaster is the first class in Qt to use type aliases:
using Hits = QVector<QRayCasterHit>;
Treat them as typedefs if a canonical type can be obtained for
them. This requires adding some simplification of the canonical types
obtained for standard containers.
Task-number: PYSIDE-751
Change-Id: I521a8b02d3c8cb89e4f72a817fbacc5955041570
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/parser/codemodel.h')
-rw-r--r-- | sources/shiboken2/ApiExtractor/parser/codemodel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/parser/codemodel.h b/sources/shiboken2/ApiExtractor/parser/codemodel.h index eef2bf281..aad1a8eaa 100644 --- a/sources/shiboken2/ApiExtractor/parser/codemodel.h +++ b/sources/shiboken2/ApiExtractor/parser/codemodel.h @@ -186,6 +186,8 @@ public: void addInstantiation(const TypeInfo &i) { m_instantiations.append(i); } void clearInstantiations() { m_instantiations.clear(); } + bool isStdType() const; + QPair<int, int> parseTemplateArgumentList(const QString &l, int from = 0); bool operator==(const TypeInfo &other) const; @@ -212,6 +214,8 @@ public: static bool stripLeadingVolatile(QString *s); static bool stripLeadingQualifier(const QString &qualifier, QString *s); + void simplifyStdType(); + private: friend class TypeInfoTemplateArgumentHandler; |