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

Method toString

kdevplatform/language/duchain/types/unsuretype.cpp:36–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36QString UnsureType::toString() const
37{
38 QStringList typeNames;
39 typeNames.reserve(d_func()->m_typesSize());
40 FOREACH_FUNCTION(const IndexedType &type, d_func()->m_types) {
41 AbstractType::Ptr t = type.abstractType();
42 if (t)
43 typeNames.append(t->toString());
44 else
45 typeNames.append(QStringLiteral("none"));
46 }
47 QString ret = QLatin1String("unsure (") + typeNames.join(QLatin1String(", ")) + QLatin1Char(')');
48
49 return ret;
50}
51
52bool UnsureType::equals(const KDevelop::AbstractType* rhs) const
53{

Callers 1

FOREACH_FUNCTIONFunction · 0.45

Calls 2

joinMethod · 0.80
reserveMethod · 0.45

Tested by

no test coverage detected