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

Method toString

plugins/clang/duchain/types/classspecializationtype.cpp:82–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82QString ClassSpecializationType::toString() const
83{
84 QualifiedIdentifier id = qualifiedIdentifier();
85 if (!id.isEmpty()) {
86 QString result = AbstractType::toString() + strippedQid(id) + QLatin1String("< ");
87 bool first = true;
88 const auto& templateParameters = this->templateParameters();
89 for (const auto& param : templateParameters) {
90 if (first) {
91 first = false;
92 } else {
93 result += QLatin1String(", ");
94 }
95 result += param.abstractType()->toString();
96 }
97 result += QLatin1String(" >");
98 return result;
99 }
100
101 return StructureType::toString();
102}
103
104bool ClassSpecializationType::equals(const KDevelop::AbstractType* rhs) const
105{

Callers 1

strippedQidFunction · 0.45

Calls 5

templateParametersMethod · 0.95
strippedQidFunction · 0.85
toStringFunction · 0.50
isEmptyMethod · 0.45
abstractTypeMethod · 0.45

Tested by

no test coverage detected