| 283 | } |
| 284 | |
| 285 | void cmSourceFile::CheckLanguage(cm::string_view ext) |
| 286 | { |
| 287 | // Try to identify the source file language from the extension. |
| 288 | cmMakefile const* mf = this->Location.GetMakefile(); |
| 289 | cmGlobalGenerator* gg = mf->GetGlobalGenerator(); |
| 290 | cm::string_view l = gg->GetLanguageFromExtension(ext); |
| 291 | if (!l.empty()) { |
| 292 | this->Language = std::string(l); |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | bool cmSourceFile::Matches(cmSourceFileLocation const& loc) |
| 297 | { |
no test coverage detected