diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-12-11 10:20:49 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-12-11 10:27:40 +0100 |
commit | 642158e998b33cfc20ec93fd2b73234d7c79deb2 (patch) | |
tree | 675f653f74bb52da9e851b0ae4cf0022826ebea4 /sources/shiboken2/ApiExtractor/messages.cpp | |
parent | fbe8ed964094b36d807a70d26dd3906f16b65040 (diff) |
shiboken: Improve error message about not finding smart pointers
List target lang name and C++ name.
Task-number: PYSIDE-454
Change-Id: Ie3d17dd3cc2ed0334f032e9a918fb1930e8ae61f
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/messages.cpp')
-rw-r--r-- | sources/shiboken2/ApiExtractor/messages.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sources/shiboken2/ApiExtractor/messages.cpp b/sources/shiboken2/ApiExtractor/messages.cpp index 546e9c4ed..d4cf53efe 100644 --- a/sources/shiboken2/ApiExtractor/messages.cpp +++ b/sources/shiboken2/ApiExtractor/messages.cpp @@ -334,8 +334,10 @@ QString msgCannotFindSmartPointer(const QString &instantiationType, QString result; QTextStream str(&result); str << "Unable to find smart pointer type for " << instantiationType << " (known types:"; - for (auto t : pointers) - str << ' ' << t->fullName(); + for (auto t : pointers) { + auto typeEntry = t->typeEntry(); + str << ' ' << typeEntry->targetLangName() << '/' << typeEntry->qualifiedCppName(); + } str << ")."; return result; } |