aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/ApiExtractor/messages.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-05-10 10:58:32 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-05-11 13:41:08 +0200
commit8684f39d265e52fb0eae8b99ec2cac7aa5f75525 (patch)
tree82de93422b09760f06b3d7b9cfe3e02ab868b93d /sources/shiboken6/ApiExtractor/messages.cpp
parentbc792395139f4312c80f103352acc9a192e6bb52 (diff)
shiboken6: Refactor reject logic
Introduce a struct with type signature, sortkey and reason for rejected entries instead of using a QMap. This allows for sorting rejected functions by function signature excluding return type such that members of a class show up in a group. Remove unused enum value "ApiIncompatible". Pick-to: 6.5 Change-Id: I0ea29c8163c6eba2abba843355f9a9940e416d7c Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/messages.cpp')
-rw-r--r--sources/shiboken6/ApiExtractor/messages.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/sources/shiboken6/ApiExtractor/messages.cpp b/sources/shiboken6/ApiExtractor/messages.cpp
index c54ea7d7e..ab112bf57 100644
--- a/sources/shiboken6/ApiExtractor/messages.cpp
+++ b/sources/shiboken6/ApiExtractor/messages.cpp
@@ -803,17 +803,17 @@ QString msgRejectReason(const TypeRejection &r, const QString &needle)
QTextStream str(&result);
switch (r.matchType) {
case TypeRejection::ExcludeClass:
- str << " matches class exclusion \"" << r.className.pattern() << '"';
+ str << "matches class exclusion \"" << r.className.pattern() << '"';
break;
case TypeRejection::Function:
case TypeRejection::Field:
case TypeRejection::Enum:
- str << " matches class \"" << r.className.pattern() << "\" and \""
+ str << "matches class \"" << r.className.pattern() << "\" and \""
<< r.pattern.pattern() << '"';
break;
case TypeRejection::ArgumentType:
case TypeRejection::ReturnType:
- str << " matches class \"" << r.className.pattern() << "\" and \""
+ str << "matches class \"" << r.className.pattern() << "\" and \""
<< needle << "\" matches \"" << r.pattern.pattern() << '"';
break;
}