diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-07-04 13:25:31 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-01-06 16:05:36 +0100 |
commit | 3bc59fc8a2a2e36916bd2c4557b8fb48329085f3 (patch) | |
tree | aeebf1f35c4b5e99a808e5c2c4903bf1fa03a10c /sources/shiboken2/ApiExtractor/typesystem_typedefs.h | |
parent | e4aa9e13ac6e4d38c473fc32ea4ace3777df7a57 (diff) |
shiboken/typedatabase: Match multiple type entries by name
For smart pointer instantiations, type entries from multiple modules
need to be searched, which is currently not implemented.
Extend the type database to return all type entries by name. Split out
the code finding a type entry from
AbstractMetaBuilderPrivate::translateType() and change it return a
list.
Ignore duplicate primitive types for now since that cannot be easily
avoided.
Task-number: PYSIDE-1024
Change-Id: I4a30b9151b472acff5fba221019a2e321807d4a0
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/typesystem_typedefs.h')
-rw-r--r-- | sources/shiboken2/ApiExtractor/typesystem_typedefs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/typesystem_typedefs.h b/sources/shiboken2/ApiExtractor/typesystem_typedefs.h index fd702793e..73f92b294 100644 --- a/sources/shiboken2/ApiExtractor/typesystem_typedefs.h +++ b/sources/shiboken2/ApiExtractor/typesystem_typedefs.h @@ -40,6 +40,7 @@ class DocModification; struct AddedFunction; struct FieldModification; struct FunctionModification; +class TypeEntry; using AddedFunctionPtr = QSharedPointer<AddedFunction>; using AddedFunctionList = QVector<AddedFunctionPtr>; @@ -47,5 +48,6 @@ using CodeSnipList = QVector<CodeSnip>; using DocModificationList = QVector<DocModification>; using FieldModificationList = QVector<FieldModification>; using FunctionModificationList = QVector<FunctionModification>; +using TypeEntries = QVector<const TypeEntry *>; #endif // TYPESYSTEM_TYPEDEFS_H |