diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-07-17 16:08:53 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2018-07-24 12:21:21 +0000 |
commit | 4cadefa802339c5d4f597930f7703ec3128df967 (patch) | |
tree | b7d3b989e654663062c16ec7046e73f657139423 /sources/shiboken2 | |
parent | 873f31931458fa2000828cccd0b044c24e9f27a7 (diff) |
shiboken: Add debug output for container types
Change-Id: Ied74ec8ca7e3b3c439204c5010b0b727be3b13b2
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/shiboken2')
-rw-r--r-- | sources/shiboken2/ApiExtractor/typedatabase.cpp | 6 | ||||
-rw-r--r-- | sources/shiboken2/ApiExtractor/typesystem.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/typedatabase.cpp b/sources/shiboken2/ApiExtractor/typedatabase.cpp index 6372a8715..f6072ea1b 100644 --- a/sources/shiboken2/ApiExtractor/typedatabase.cpp +++ b/sources/shiboken2/ApiExtractor/typedatabase.cpp @@ -760,6 +760,12 @@ void EnumTypeEntry::formatDebug(QDebug &d) const d << ", flags=(" << m_flags << ')'; } +void ContainerTypeEntry::formatDebug(QDebug &d) const +{ + ComplexTypeEntry::formatDebug(d); + d << ", type=" << m_type << ",\"" << typeName() << '"'; +} + QDebug operator<<(QDebug d, const TypeEntry *te) { QDebugStateSaver saver(d); diff --git a/sources/shiboken2/ApiExtractor/typesystem.h b/sources/shiboken2/ApiExtractor/typesystem.h index 13805d47e..8eb9dfb5a 100644 --- a/sources/shiboken2/ApiExtractor/typesystem.h +++ b/sources/shiboken2/ApiExtractor/typesystem.h @@ -1463,6 +1463,9 @@ public: QString targetLangName() const override; QString qualifiedCppName() const override; +#ifndef QT_NO_DEBUG_STREAM + void formatDebug(QDebug &d) const override; +#endif private: Type m_type; }; |