diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-03-21 21:17:57 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-03-23 17:09:54 +0100 |
commit | 84f5d3fca336730508eeb0144d4ee42feff34f0c (patch) | |
tree | 07e589a8a9f61aaf1b0a2c2c89651e9967a589a0 /sources/shiboken2/ApiExtractor/messages.h | |
parent | fc7f5f15292886790b45ab114d93a873564f95d6 (diff) |
shiboken: Improve error messages about invalid types of added functions
Change translateType() to pass up the error instead of aborting so
that the error is printed in traverseFunction() along with the name.
The abort in case of failure will then occur in fillAddedFunctions().
Task-number: PYSIDE-946
Task-number: PYSIDE-1241
Change-Id: Iee9ca478b28c8f82d9c4b6c5165f3028bf1e0d08
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/messages.h')
-rw-r--r-- | sources/shiboken2/ApiExtractor/messages.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/messages.h b/sources/shiboken2/ApiExtractor/messages.h index 2b7b75ba0..ad0553fbc 100644 --- a/sources/shiboken2/ApiExtractor/messages.h +++ b/sources/shiboken2/ApiExtractor/messages.h @@ -45,6 +45,13 @@ QT_FORWARD_DECLARE_CLASS(QDir) QT_FORWARD_DECLARE_CLASS(QFile) QT_FORWARD_DECLARE_CLASS(QXmlStreamReader) +QString msgAddedFunctionInvalidArgType(const QString &addedFuncName, + const QString &typeName, + int pos, const QString &why); + +QString msgAddedFunctionInvalidReturnType(const QString &addedFuncName, + const QString &typeName, const QString &why); + QString msgNoFunctionForModification(const QString &signature, const QString &originalSignature, const QString &className, |