summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-01-03 12:50:33 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-01-03 12:26:42 +0000
commit0b352fca7391d01ce410ec0c04c285326e465dc1 (patch)
treeefdda86051626f3d1c7bbd28a11b9f4a851a2cdd
parentf17794bb02ef03aba8833f34a61edf588a862ebf (diff)
shiboken: Make signatures in overload decisor code more verbose
Add 'static' and class name. Task-number: PYSIDE-886 Change-Id: Ie70d3b405e034f6203c54a363e3037c83720af00 Reviewed-by: Christian Tismer <tismer@stackless.com>
-rw-r--r--sources/shiboken2/generator/shiboken2/cppgenerator.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/sources/shiboken2/generator/shiboken2/cppgenerator.cpp b/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
index adec70dd..e46e0b96 100644
--- a/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
+++ b/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
@@ -2452,8 +2452,15 @@ void CppGenerator::writeOverloadedFunctionDecisor(QTextStream& s, const Overload
s << INDENT << "// Overloaded function decisor" << endl;
const AbstractMetaFunction* rfunc = overloadData.referenceFunction();
const OverloadData::MetaFunctionList &functionOverloads = overloadData.overloadsWithoutRepetition();
- for (int i = 0; i < functionOverloads.count(); i++)
- s << INDENT << "// " << i << ": " << functionOverloads.at(i)->minimalSignature() << endl;
+ for (int i = 0; i < functionOverloads.count(); i++) {
+ const auto func = functionOverloads.at(i);
+ s << INDENT << "// " << i << ": ";
+ if (func->isStatic())
+ s << "static ";
+ if (const auto *decl = func->declaringClass())
+ s << decl->name() << "::";
+ s << func->minimalSignature() << endl;
+ }
writeOverloadedFunctionDecisorEngine(s, &overloadData);
s << endl;