aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/ApiExtractor/typesystem.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-06-22 17:32:53 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-06-22 20:18:09 +0000
commit956a8c13a836eb4d3b469bf2c9d8cbb1619ddf12 (patch)
treebfd6fb92ec9c2b7345ad71666bad4cce1512426f /sources/shiboken2/ApiExtractor/typesystem.h
parent94aa45c4031891aaf084d8efdaa35e09087abf56 (diff)
shiboken: Improve error message about missing function for modification
The signature is passed through TypeDatabase::normalizedSignature() which calls QMetaObject::normalizedSignature(). Keep the original signature and output it in the error message. Change-Id: Ibd1ddd0dee17d828710caf4bf6d674c35776b4c2 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/typesystem.h')
-rw-r--r--sources/shiboken2/ApiExtractor/typesystem.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/typesystem.h b/sources/shiboken2/ApiExtractor/typesystem.h
index 79e60cd75..186c4b24d 100644
--- a/sources/shiboken2/ApiExtractor/typesystem.h
+++ b/sources/shiboken2/ApiExtractor/typesystem.h
@@ -356,6 +356,9 @@ struct FunctionModification: public Modification
bool setSignature(const QString &s, QString *errorMessage = nullptr);
QString signature() const { return m_signature.isEmpty() ? m_signaturePattern.pattern() : m_signature; }
+ void setOriginalSignature(const QString &s) { m_originalSignature = s; }
+ QString originalSignature() const { return m_originalSignature; }
+
QString toString() const;
QString association;
@@ -365,6 +368,7 @@ struct FunctionModification: public Modification
private:
QString m_signature;
+ QString m_originalSignature;
QRegularExpression m_signaturePattern;
bool m_thread = false;
bool m_allowThread = false;