diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-11-13 11:00:23 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-11-18 15:45:34 +0100 |
commit | ea02836aa048cfdd853122273f25a5a2c2d7d493 (patch) | |
tree | b09c37432409e8fb38bdee669c7747d2c0b89798 /sources/shiboken2/ApiExtractor/messages.h | |
parent | 688176a3c35f49c7c087ca2f0e8c841e72133176 (diff) |
shiboken: Fix crash when smartptr template class cannot be found
shiboken currently crashes when naively trying to use std::shared_ptr
since it does not see the template due to system directories being
excluded from clang parsing. Add an error message and bail out.
Task-number: PYSIDE-454
Change-Id: I6627e968061f8f704a90f898879f3861308e1705
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/messages.h')
-rw-r--r-- | sources/shiboken2/ApiExtractor/messages.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/messages.h b/sources/shiboken2/ApiExtractor/messages.h index 2fee0de8f..4d66a89b8 100644 --- a/sources/shiboken2/ApiExtractor/messages.h +++ b/sources/shiboken2/ApiExtractor/messages.h @@ -117,6 +117,9 @@ QString msgCannotUseEnumAsInt(const QString &name); QString msgConversionTypesDiffer(const QString &varType, const QString &conversionType); +QString msgCannotFindSmartPointer(const QString &instantiationType, + const AbstractMetaClassList &pointers); + QString msgLeftOverArguments(const QMap<QString, QString> &remainingArgs); QString msgInvalidVersion(const QString &package, const QString &version); |