aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/messages.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-09-17 11:24:39 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-09-17 12:12:45 +0200
commit6392ea613c1cf93a3fd793cd61050aa348ae1c7c (patch)
treeeb71393adb8b66f23b6429e5356bab3de6f02a61 /sources/shiboken6/ApiExtractor/messages.cpp
parent0055c90694cbf8a82a4c3ee75d47b6d2538f6247 (diff)
shiboken6: Add support for built-in types
Add a built-in flag to TypeEntry and fix the duplicate type entry checking logic to handle built-in types with a different warning. Task-number: PYSIDE-1660 Change-Id: I22b0fc92b0f19b4163a4311441638176ff6a4bfb Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/messages.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/messages.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/messages.cpp b/sources/shiboken6/ApiExtractor/messages.cpp
index 1f79000e2..796d18c4b 100644
--- a/sources/shiboken6/ApiExtractor/messages.cpp
+++ b/sources/shiboken6/ApiExtractor/messages.cpp
@@ -811,3 +811,14 @@ QString msgUnknownTypeInArgumentTypeReplacement(const QString &typeReplaced,
<< "', the generated code may be broken.";
return result;
}
+
+QString msgDuplicateBuiltInTypeEntry(const QString &name)
+{
+ return u"A type entry duplicating the built-in type \""_qs
+ + name + u"\" was found. It is ignored."_qs;
+}
+
+QString msgDuplicateTypeEntry(const QString &name)
+{
+ return u"Duplicate type entry: '"_qs + name + u"'."_qs;
+}