diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-12-12 09:59:35 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-12-13 08:49:12 +0100 |
| commit | bbf9de174c92c1c7813d6e9f6320f40a21080df2 (patch) | |
| tree | 8443275abf4a2a5c201b868d705f6c33b8f5e0b0 /sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp | |
| parent | a0ed5a2a8cc92209440de755953ca1745aa1d6fa (diff) | |
shiboken/TypeDatabase: Add a look up for names excluding inline namespaces
Ensure for example the std::shared_ptr of AppleClang STL is found
which is in an inline namespace std::__1.
Add a shortName() to TypeEntry to represent the name and add lookups
for it to the TypeDatabase once an inline namespace is traversed.
Task-number: PYSIDE-454
Task-number: PYSIDE-990
Change-Id: I21d86ba3a77926d0910f11201cbd8978c13ca705
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp')
| -rw-r--r-- | sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp b/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp index 1adbb52d4..f6c9e407c 100644 --- a/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp +++ b/sources/shiboken2/ApiExtractor/abstractmetabuilder.cpp @@ -755,7 +755,11 @@ AbstractMetaClass *AbstractMetaBuilderPrivate::traverseNamespace(const FileModel << QStringLiteral("namespace '%1' does not have a type entry").arg(namespaceName); return nullptr; } - type->setInlineNamespace(namespaceItem->type() == NamespaceType::Inline); + + if (namespaceItem->type() == NamespaceType::Inline) { + type->setInlineNamespace(true); + TypeDatabase::instance()->addInlineNamespaceLookups(type); + } // Continue populating namespace? AbstractMetaClass *metaClass = AbstractMetaClass::findClass(m_metaClasses, type); |
