From 0b352fca7391d01ce410ec0c04c285326e465dc1 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 3 Jan 2019 12:50:33 +0100 Subject: 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 --- sources/shiboken2/generator/shiboken2/cppgenerator.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sources/shiboken2/generator/shiboken2/cppgenerator.cpp b/sources/shiboken2/generator/shiboken2/cppgenerator.cpp index adec70dd7..e46e0b968 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; -- cgit v1.2.3