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

Function stripPrefixIdentifiers

plugins/clang/codegen/codegenhelper.cpp:25–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23IndexedTypeIdentifier stripPrefixIdentifiers(const IndexedTypeIdentifier& id, const QualifiedIdentifier& strip);
24
25Identifier stripPrefixIdentifiers(const Identifier& id, const QualifiedIdentifier& strip)
26{
27 Identifier ret(id);
28 ret.clearTemplateIdentifiers();
29 for (unsigned int a = 0; a < id.templateIdentifiersCount(); ++a) {
30 ret.appendTemplateIdentifier(stripPrefixIdentifiers(id.templateIdentifier(a), strip));
31 }
32
33 return ret;
34}
35
36IndexedTypeIdentifier stripPrefixIdentifiers(const IndexedTypeIdentifier& id, const QualifiedIdentifier& strip)
37{

Callers 1

shortenedTypeIdentifierFunction · 0.85

Calls 10

templateIdentifierMethod · 0.80
identifierMethod · 0.45
countMethod · 0.45
toStringMethod · 0.45
atMethod · 0.45
pushMethod · 0.45
setIdentifierMethod · 0.45

Tested by

no test coverage detected