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

Function typeToString

kdevplatform/language/duchain/duchaindumper.cpp:42–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41namespace KDevelop {
42QString typeToString(DUContext::ContextType type)
43{
44 switch (type) {
45 case DUContext::Global: return QStringLiteral("Global");
46 case DUContext::Namespace: return QStringLiteral("Namespace");
47 case DUContext::Class: return QStringLiteral("Class");
48 case DUContext::Function: return QStringLiteral("Function");
49 case DUContext::Template: return QStringLiteral("Template");
50 case DUContext::Enum: return QStringLiteral("Enum");
51 case DUContext::Helper: return QStringLiteral("Helper");
52 case DUContext::Other: return QStringLiteral("Other");
53 }
54 Q_ASSERT(false);
55 return QString();
56}
57
58class DUChainDumperPrivate
59{

Callers 1

dumpMethod · 0.85

Calls 1

QStringClass · 0.70

Tested by

no test coverage detected