MCPcopy Create free account
hub / github.com/Kitware/CMake / MapLanguage

Function MapLanguage

Source/cmPackageInfoReader.cxx:63–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61};
62
63cm::string_view MapLanguage(cm::string_view lang,
64 LanguageGlobOption glob = AllowGlob)
65{
66 if (glob == AllowGlob && lang == "*"_s) {
67 return "*"_s;
68 }
69 auto const li = Languages.find(cmSystemTools::LowerCase(lang));
70 if (li != Languages.end()) {
71 return li->second;
72 }
73 return {};
74}
75
76std::string GetRealPath(std::string const& path)
77{

Callers 2

AppendLanguagePropertiesFunction · 0.85
SetTargetPropertiesMethod · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…