MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / fromString

Method fromString

context/ProgrammingLanguage.cpp:40–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40ProgrammingLanguage ProgrammingLanguageUtils::fromString(const QString &str)
41{
42 QString lower = str.toLower();
43 if (lower == "c/c++") {
44 return ProgrammingLanguage::Cpp;
45 }
46 if (lower == "qml") {
47 return ProgrammingLanguage::QML;
48 }
49 if (lower == "python") {
50 return ProgrammingLanguage::Python;
51 }
52 return ProgrammingLanguage::Unknown;
53}
54
55} // namespace QodeAssist::Context

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected