diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-12-20 20:49:26 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2023-12-21 09:29:10 +0100 |
| commit | e7e24100692a422673a30b0a439bb6de2ddaf700 (patch) | |
| tree | 26c730fa9b5688ec9a9165f9693c1461ea4ef714 /sources/shiboken6/ApiExtractor/messages.cpp | |
| parent | db2cfc8a7c4036936c2b58b215d22c372cd039f8 (diff) | |
shiboken6: Improve warning message when stripping arguments
Pick-to: 6.6
Change-Id: Ibd4fd2da19811183fe8743b925ba2bf98b892541
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/messages.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/messages.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/shiboken6/ApiExtractor/messages.cpp b/sources/shiboken6/ApiExtractor/messages.cpp index c099b73b7..52985ed2a 100644 --- a/sources/shiboken6/ApiExtractor/messages.cpp +++ b/sources/shiboken6/ApiExtractor/messages.cpp @@ -377,14 +377,15 @@ QString msgGlobalFunctionNotDefined(const FunctionTypeEntryCPtr &fte, QString msgStrippingArgument(const FunctionModelItem &f, int i, const QString &originalSignature, - const ArgumentModelItem &arg) + const ArgumentModelItem &arg, + const QString &reason) { QString result; QTextStream str(&result); str << f->sourceLocation() << "Stripping argument #" << (i + 1) << " of " << originalSignature << " due to unmatched type \"" << arg->type().toString() << "\" with default expression \"" - << arg->defaultValueExpression() << "\"."; + << arg->defaultValueExpression() << "\": " << reason; return result; } |
