aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/typesystem.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-17 10:55:09 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-11-17 11:28:43 +0000
commit70f219d10e15cd8fe125b6169c640598d89223c0 (patch)
treee068f85b1f29dffa9736a6fe6883cf05774740ca /sources/shiboken6/ApiExtractor/typesystem.h
parentbbc52f68f6e989a242b787d32e828455bf8e8a8d (diff)
shiboken6: Move further C++ check functions from the generators to MetaLang*
Change-Id: I14fe14a2c7a5efff01dcd34bc1682cd8e264ab86 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
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 5484f0af5..2bc37ecb8 100644
--- a/sources/shiboken6/ApiExtractor/typesystem.h
+++ b/sources/shiboken6/ApiExtractor/typesystem.h
@@ -257,6 +257,13 @@ public:
SourceLocation sourceLocation() const;
void setSourceLocation(const SourceLocation &sourceLocation);
+ // Query functions for generators
+ /// Returns true if the type is a primitive but not a C++ primitive.
+ bool isUserPrimitive() const;
+ /// Returns true if the type passed has a Python wrapper for it.
+ /// Although namespace has a Python wrapper, it's not considered a type.
+ bool isWrapperType() const;
+
#ifndef QT_NO_DEBUG_STREAM
virtual void formatDebug(QDebug &d) const;
#endif