cmSourceFile: Rename non-const GetLanguage

GetOrDetermineLanguage:
- Read the property if available
- Determine the Language using the file extension

Fix all usage of the non-const member in the repository.
This commit is contained in:
Tushar Maheshwari
2019-08-27 21:35:42 +05:30
parent 65fe80794d
commit 8cb3cffa42
8 changed files with 18 additions and 21 deletions
+1 -1
View File
@@ -365,7 +365,7 @@ void cmExtraCodeBlocksGenerator::CreateNewProjectFile(
// check whether it is a C/C++/CUDA implementation file
bool isCFile = false;
std::string lang = s->GetLanguage();
std::string lang = s->GetOrDetermineLanguage();
if (lang == "C" || lang == "CXX" || lang == "CUDA") {
std::string const& srcext = s->GetExtension();
isCFile = cm->IsSourceExtension(srcext);