aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/typesystem.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-09-22 11:01:46 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-09-22 18:45:09 +0200
commit8878f9980d873cccc8f67cc6aed60929396872f2 (patch)
tree6a68d0b491131278eb36fac346e21a8270faf4ea /sources/shiboken6/ApiExtractor/typesystem.h
parented8dbddc67517bff961e4b3c300b21ce987e3e6a (diff)
shiboken6: Improve typesystem debug output
Add some debug output for PrimitiveTypeEntry and indicate built-in types. As a drive-by, add explamatory comment. Task-number: PYSIDE-1660 Change-Id: I870b7f3c2d344a6a3944ea8ac7ccb0d864cbe294 Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/typesystem.h')
-rw-r--r--sources/shiboken6/ApiExtractor/typesystem.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/typesystem.h b/sources/shiboken6/ApiExtractor/typesystem.h
index 38b8c0143..54eaf4e40 100644
--- a/sources/shiboken6/ApiExtractor/typesystem.h
+++ b/sources/shiboken6/ApiExtractor/typesystem.h
@@ -370,6 +370,9 @@ protected:
QString buildTargetLangName() const override;
};
+/// A PrimitiveTypeEntry is user-defined type with conversion rules, a C++
+/// primitive type for which a PrimitiveTypeConverter exists in libshiboken
+/// or a typedef to a C++ primitive type as determined by AbstractMetaBuilder.
class PrimitiveTypeEntry : public TypeEntry
{
public:
@@ -408,6 +411,10 @@ public:
TypeEntry *clone() const override;
+#ifndef QT_NO_DEBUG_STREAM
+ void formatDebug(QDebug &d) const override;
+#endif
+
protected:
explicit PrimitiveTypeEntry(PrimitiveTypeEntryPrivate *d);
};