aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/messages.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-08-31 09:53:23 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-08-31 11:56:34 +0200
commitc2ad08a6d2e5b9bb743194ce46643d113dc895ed (patch)
tree3e2be939d1a191d2db9e2abcf0da0ae64c01dfb0 /sources/shiboken6/ApiExtractor/messages.cpp
parente39a383766aa1c73e94d948d6e3a3bd20729f19b (diff)
shiboken6: Improve message about not being able to resolve typedefs
Pick-to: 6.5 Change-Id: I9605d7992dfd7506c1d6e75c2719d77cfeffe449 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/messages.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/messages.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/messages.cpp b/sources/shiboken6/ApiExtractor/messages.cpp
index 01fe08819..d1eb0e44a 100644
--- a/sources/shiboken6/ApiExtractor/messages.cpp
+++ b/sources/shiboken6/ApiExtractor/messages.cpp
@@ -867,6 +867,15 @@ QString msgCannotFindSnippet(const QString &file, const QString &snippetLabel)
return result;
}
+QString msgUnableToResolveTypedef(const QString &sourceType, const QString &sourceName)
+{
+ QString result;
+ QTextStream(&result) << "Unable to resolve typedef \"" << sourceType
+ << "\": Could not find a value, container, object or smart pointer type named \""
+ << sourceName << "\".";
+ return result;
+}
+
// cppgenerator.cpp
QString msgPureVirtualFunctionRemoved(const AbstractMetaFunction *f)