aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/typesystem.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-11-22 13:25:01 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-11-24 11:37:48 +0000
commit0f5920b798af86454abbc2e466f96336920b4f1c (patch)
tree7f2e88751f4243634e1f8d39af6ac62c88072be9 /sources/shiboken2/ApiExtractor/typesystem.h
parentb92fb6e81be252a2ffae26768434028c5029ddc7 (diff)
shiboken: Add debug output for function modifications
Task-number: PYSIDE-834 Change-Id: I2530b44f704ef96b784a77512f71777d9fd492bb Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/typesystem.h')
-rw-r--r--sources/shiboken2/ApiExtractor/typesystem.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/typesystem.h b/sources/shiboken2/ApiExtractor/typesystem.h
index 721d19f29..b0144923a 100644
--- a/sources/shiboken2/ApiExtractor/typesystem.h
+++ b/sources/shiboken2/ApiExtractor/typesystem.h
@@ -308,6 +308,10 @@ struct Modification
return removal != TypeSystem::NoLanguage;
}
+#ifndef QT_NO_DEBUG_STREAM
+ void formatDebug(QDebug &d) const;
+#endif
+
QString renamedToName;
uint modifiers = 0;
TypeSystem::Language removal = TypeSystem::NoLanguage;
@@ -351,6 +355,10 @@ struct FunctionModification: public Modification
QString toString() const;
+#ifndef QT_NO_DEBUG_STREAM
+ void formatDebug(QDebug &d) const;
+#endif
+
QString association;
CodeSnipList snips;
@@ -365,6 +373,13 @@ private:
TypeSystem::ExceptionHandling m_exceptionHandling = TypeSystem::ExceptionHandling::Unspecified;
};
+#ifndef QT_NO_DEBUG_STREAM
+QDebug operator<<(QDebug d, const ReferenceCount &);
+QDebug operator<<(QDebug d, const ArgumentOwner &a);
+QDebug operator<<(QDebug d, const ArgumentModification &a);
+QDebug operator<<(QDebug d, const FunctionModification &fm);
+#endif
+
struct FieldModification: public Modification
{
bool isReadable() const