MCPcopy Create free account
hub / github.com/KDE/kdevelop / toString

Method toString

kdevplatform/language/duchain/classfunctiondeclaration.cpp:81–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81QString ClassFunctionDeclaration::toString() const
82{
83 if (!abstractType())
84 return ClassMemberDeclaration::toString();
85
86 TypePtr<FunctionType> function = type<FunctionType>();
87 if (function) {
88 return QStringLiteral("%1 %2 %3").arg(function->partToString(FunctionType::SignatureReturn),
89 identifier().toString(),
90 function->partToString(FunctionType::SignatureArguments));
91 } else {
92 QString type = abstractType() ? abstractType()->toString() : QStringLiteral("<notype>");
93 qCDebug(LANGUAGE) << "A function has a bad type attached:" << type;
94 return i18n("invalid member-function %1 type %2", identifier().toString(), type);
95 }
96}
97
98/*bool ClassFunctionDeclaration::isSimilar(KDevelop::CodeItem *other, bool strict ) const
99 {

Callers 2

setAbstractTypeMethod · 0.45
isDestructorMethod · 0.45

Calls 2

partToStringMethod · 0.80
toStringFunction · 0.50

Tested by

no test coverage detected