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

Function removeTemplateParameters

plugins/clang/codegen/codegenhelper.cpp:122–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120IndexedTypeIdentifier removeTemplateParameters(const IndexedTypeIdentifier& identifier, int behindPosition);
121
122Identifier removeTemplateParameters(const Identifier& id, int behindPosition)
123{
124 Identifier ret(id);
125
126 ret.clearTemplateIdentifiers();
127 for (unsigned int a = 0; a < id.templateIdentifiersCount(); ++a) {
128 IndexedTypeIdentifier replacement = removeTemplateParameters(id.templateIdentifier(a), behindPosition);
129 if (( int ) a < behindPosition) {
130 ret.appendTemplateIdentifier(replacement);
131 } else {
132 ret.appendTemplateIdentifier(IndexedTypeIdentifier(QualifiedIdentifier(QStringLiteral("..."))));
133 break;
134 }
135 }
136
137 return ret;
138}
139
140IndexedTypeIdentifier removeTemplateParameters(const IndexedTypeIdentifier& identifier, int behindPosition) {
141 IndexedTypeIdentifier ret(identifier);

Callers 1

shortenedTypeIdentifierFunction · 0.85

Calls 11

templateIdentifierMethod · 0.80
QualifiedIdentifierClass · 0.50
identifierMethod · 0.45
countMethod · 0.45
pushMethod · 0.45
atMethod · 0.45
setIdentifierMethod · 0.45

Tested by

no test coverage detected