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

Method toString

kdevplatform/language/duchain/instantiationinformation.cpp:60–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60QString InstantiationInformation::toString(bool local) const
61{
62 QString ret;
63 if (previousInstantiationInformation.index() && !local)
64 ret = previousInstantiationInformation.information().toString() + QLatin1String("::");
65 ret += QLatin1Char('<');
66 QStringList types;
67 types.reserve(templateParametersSize());
68 for (uint a = 0; a < templateParametersSize(); ++a) {
69 if (templateParameters()[a].abstractType())
70 types.append(templateParameters()[a].abstractType()->toString());
71 else
72 // TODO: what should be here instead?
73 types.append(QString());
74 }
75
76 ret += QLatin1Char('<') + types.join(QLatin1String(", ")) + QLatin1Char('>');
77 return ret;
78}
79
80InstantiationInformation::InstantiationInformation() : m_refCount(0)
81{

Callers 1

applyToIdentifierMethod · 0.45

Calls 6

joinMethod · 0.80
QStringClass · 0.70
indexMethod · 0.45
reserveMethod · 0.45
abstractTypeMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected