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

Method GetLanguageOutputExtension

Source/cmGlobalGenerator.cxx:1084–1101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1082}
1083
1084std::string cmGlobalGenerator::GetLanguageOutputExtension(
1085 cmSourceFile const& source) const
1086{
1087 std::string const& lang = source.GetLanguage();
1088 if (!lang.empty()) {
1089 return this->GetLanguageOutputExtension(lang);
1090 }
1091 // if no language is found then check to see if it is already an
1092 // output extension for some language. In that case it should be ignored
1093 // and in this map, so it will not be compiled but will just be used.
1094 std::string const& ext = source.GetExtension();
1095 if (!ext.empty()) {
1096 if (this->OutputExtensions.count(ext)) {
1097 return ext;
1098 }
1099 }
1100 return "";
1101}
1102
1103std::string cmGlobalGenerator::GetLanguageOutputExtension(
1104 std::string const& lang) const

Calls 6

GetLanguageMethod · 0.80
GetExtensionMethod · 0.80
emptyMethod · 0.45
countMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected