diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-09-16 15:54:15 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-09-30 07:37:06 +0200 |
| commit | 7f2874cf7e9c955a009d06da0b4c848c6a404215 (patch) | |
| tree | a26e930cd293b812243adcfe385fc96bbfdeab6d /sources/shiboken6/ApiExtractor/messages.cpp | |
| parent | 2e291350fd6294912bf29680a76819400ad693b7 (diff) | |
shiboken6: Remove ShibokenGenerator::guessCPythonCheckFunction()
Since all CPython types are now built-in custom types, there is no
longer a need to guess the check functions.
Custom types passed to writeTypeCheck should be valid
AbstractMetaTypes; throw an exception if this fails.
Define a check function for Qml's VolatileBool where it was relying on
heuristics.
Task-number: PYSIDE-1660
Change-Id: I9641c63ae2942db86dbf84488429b7e25f0491a0
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/messages.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/messages.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/messages.cpp b/sources/shiboken6/ApiExtractor/messages.cpp index 00d9dd816..ff4a9fa42 100644 --- a/sources/shiboken6/ApiExtractor/messages.cpp +++ b/sources/shiboken6/ApiExtractor/messages.cpp @@ -832,3 +832,9 @@ QString msgInvalidTargetLanguageApiName(const QString &name) return u"Invalid target language API name \""_qs + name + u"\"."_qs; } + +QString msgUnknownCheckFunction(const TypeEntry *t) +{ + return u"Unknown check function for type: '"_qs + + t->qualifiedCppName() + u"'."_qs; +} |
