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

Method toStringList

kdevplatform/language/duchain/identifier.cpp:801–819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

799}
800
801QStringList QualifiedIdentifier::toStringList(IdentifierStringFormattingOptions options) const
802{
803 QStringList ret;
804 ret.reserve(explicitlyGlobal() + count());
805 if (explicitlyGlobal())
806 ret.append(QString());
807
808 if (m_index) {
809 ret.reserve(ret.size() + cd->identifiersSize());
810 FOREACH_FUNCTION_STATIC(const IndexedIdentifier &index, cd->identifiers)
811 ret << index.identifier().toString(options);
812 } else {
813 ret.reserve(ret.size() + dd->identifiersSize());
814 FOREACH_FUNCTION_STATIC(const IndexedIdentifier &index, dd->identifiers)
815 ret << index.identifier().toString(options);
816 }
817
818 return ret;
819}
820
821QString QualifiedIdentifier::toString(IdentifierStringFormattingOptions options) const
822{

Callers 7

stringSetFunction · 0.45
loadFromSessionMethod · 0.45
loadFromProjectMethod · 0.45
setDependenciesMethod · 0.45
DeclarationTestFunction · 0.45
refreshMethod · 0.45

Calls 7

QStringClass · 0.70
countFunction · 0.50
reserveMethod · 0.45
appendMethod · 0.45
sizeMethod · 0.45
toStringMethod · 0.45
identifierMethod · 0.45

Tested by 2

DeclarationTestFunction · 0.36