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

Method typeFor

plugins/cmake/cmakecommandscontents.cpp:79–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79CMakeDocumentation::Type CMakeCommandsContents::typeFor(const QString& identifier) const
80{
81 //TODO can do much better
82 if(m_typeForName.contains(identifier)) {
83 return m_typeForName[identifier];
84 } else if(m_typeForName.contains(identifier.toLower())) {
85 return m_typeForName[identifier.toLower()];
86 } else if(m_typeForName.contains(identifier.toUpper())) {
87 return m_typeForName[identifier.toUpper()];
88 }
89 return CMakeDocumentation::EOType;
90}
91
92QString CMakeCommandsContents::descriptionForIdentifier(const QString& id, CMakeDocumentation::Type t) const
93{

Callers 1

descriptionMethod · 0.80

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected