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

Method GetLanguage

Source/cmSourceFile.cxx:104–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104std::string cmSourceFile::GetLanguage() const
105{
106 // If the language was set explicitly by the user then use it.
107 if (cmValue lang = this->GetProperty(propLANGUAGE)) {
108 return *lang;
109 }
110
111 // Use the language determined from the file extension.
112 return this->Language;
113}
114
115cmSourceFileLocation const& cmSourceFile::GetLocation() const
116{

Calls 1

GetPropertyMethod · 0.95

Tested by

no test coverage detected