summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeBlocksGenerator.cxx
diff options
context:
space:
mode:
authorTushar Maheshwari <tushar27192@gmail.com>2019-08-27 16:05:42 (GMT)
committerTushar Maheshwari <tushar27192@gmail.com>2019-08-27 16:05:42 (GMT)
commit8cb3cffa42e11c2508ed8db703f2f9a1a73fbbb9 (patch)
tree88c3d054322f1e36ac67958e7da8c88897baaa82 /Source/cmExtraCodeBlocksGenerator.cxx
parent65fe80794d41ab6f0b1e608d7535b7530a2ff51d (diff)
downloadCMake-8cb3cffa42e11c2508ed8db703f2f9a1a73fbbb9.zip
CMake-8cb3cffa42e11c2508ed8db703f2f9a1a73fbbb9.tar.gz
CMake-8cb3cffa42e11c2508ed8db703f2f9a1a73fbbb9.tar.bz2
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.
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r--Source/cmExtraCodeBlocksGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx
index d8a1a49..487d0de 100644
--- a/Source/cmExtraCodeBlocksGenerator.cxx
+++ b/Source/cmExtraCodeBlocksGenerator.cxx
@@ -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);