From 567ef11d591d54f0de7e682213d4fd9efdf1afe0 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 27 Oct 2021 09:56:41 +0200 Subject: shiboken6: Do not crash when class cannot be found in the overload sorter Print an error message instead. As a drive-by, add a helper to create a class-qualified signature for error reporting purposes to AbstractMetaFunction. Task-number: PYSIDE-1684 Change-Id: I8417f405b4ce1b64060aad0696e5d328869cb83e Reviewed-by: Cristian Maureira-Fredes (cherry picked from commit 1e7f97e082d5430ff8323bc58c480d00a4f64852) --- sources/shiboken2/ApiExtractor/messages.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sources/shiboken2/ApiExtractor/messages.h') diff --git a/sources/shiboken2/ApiExtractor/messages.h b/sources/shiboken2/ApiExtractor/messages.h index 267c45a84..c4aeb3c4c 100644 --- a/sources/shiboken2/ApiExtractor/messages.h +++ b/sources/shiboken2/ApiExtractor/messages.h @@ -196,4 +196,7 @@ QString msgFallbackWarning(const QXmlStreamReader &reader, const QString &contex const QString &tag, const QString &location, const QString &identifier, const QString &fallback); +QString msgArgumentClassNotFound(const AbstractMetaFunction *func, + const TypeEntry *t); + #endif // MESSAGES_H -- cgit v1.2.3