diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-09-16 09:44:05 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-10-01 11:24:55 +0200 |
| commit | ee38500932bb2c4275811bcaabaaf7a831d29f4f (patch) | |
| tree | 59a51e4db8f9ad9e13bb5fa5c8ef58a394d8a5f3 /sources/shiboken6/ApiExtractor/messages.cpp | |
| parent | 2edf0042bb23fa8528dfb964377dae5bd35ee932 (diff) | |
shiboken6: Store removed modification in AbstractMetaArgument
Similar to 984559a68d57d76b49c8ed0cbaf3492521aebebd,
store the "removed" modification in AbstractMetaArgument.
Task-number: PYSIDE-1660
Change-Id: Id541b4dccdcf3eba708a0da5dc873fe3b20b8151
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/ApiExtractor/messages.cpp')
| -rw-r--r-- | sources/shiboken6/ApiExtractor/messages.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/messages.cpp b/sources/shiboken6/ApiExtractor/messages.cpp index b7a1e9091..8079e5851 100644 --- a/sources/shiboken6/ApiExtractor/messages.cpp +++ b/sources/shiboken6/ApiExtractor/messages.cpp @@ -104,6 +104,18 @@ QString msgArgumentOutOfRange(int number, int minValue, int maxValue) return result; } +QString msgArgumentRemovalFailed(const AbstractMetaFunction *func, int n, + const QString &why) +{ + QString result; + QTextStream str(&result); + str << "Unable to remove argument " << n << " of "; + if (auto *c = func->ownerClass()) + str << c->name() << "::"; + str << func->signature() << ": " << why; + return result; +} + template <class Stream> static void msgFormatEnumType(Stream &str, const EnumModelItem &enumItem, |
