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

Method toString

kdevplatform/language/duchain/types/referencetype.cpp:88–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88QString ReferenceType::toString() const
89{
90 AbstractType::Ptr base = baseType();
91 QString baseString = (base ? base->toString() : QStringLiteral("<notype>"));
92 const QLatin1String ampersands = d_func()->m_isRValue ? QLatin1String("&&") : QLatin1String("&");
93 if (base.dynamicCast<IntegralType>() || base.dynamicCast<StructureType>())
94 return AbstractType::toString(false) + baseString + ampersands;
95 else
96 return baseString + AbstractType::toString(true) + ampersands;
97}
98
99AbstractType::WhichType ReferenceType::whichType() const
100{

Callers

nothing calls this directly

Calls 2

baseTypeFunction · 0.85
toStringFunction · 0.50

Tested by

no test coverage detected