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

Method toString

kdevplatform/language/duchain/functiondeclaration.cpp:65–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65QString FunctionDeclaration::toString() const
66{
67 AbstractType::Ptr type = abstractType();
68 if (!type)
69 return Declaration::toString();
70
71 auto function = type.dynamicCast<FunctionType>();
72 if (function) {
73 return QStringLiteral("%1 %2 %3").arg(function->partToString(FunctionType::SignatureReturn),
74 identifier().toString(),
75 function->partToString(FunctionType::SignatureArguments));
76 } else {
77 return Declaration::toString();
78 }
79}
80
81uint FunctionDeclaration::additionalIdentity() const
82{

Callers 1

setAbstractTypeMethod · 0.45

Calls 2

partToStringMethod · 0.80
toStringFunction · 0.50

Tested by

no test coverage detected