forked from qt-creator/qt-creator
Use C++11 parsing mode for CMake, AutoTools and Generic project managers
Those 3 project managers can't easily figure out the right mode for code parsing. The code we are parsing is predominantly C++98 code. But for those using C++98 toolchains having valid C++11 code not be marked as a error is probably not much of a problem, whereas the reverse, using a C++11 toolchain and having valid code being marked as a error is annoying. Change-Id: I8dcc172029045cf591b3ba0adef1585f3f94fd39 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -633,7 +633,7 @@ void Qt4Project::updateCppCodeModel()
|
||||
if (tc)
|
||||
part->language = tc->compilerFlags(pro->variableValue(CppFlagsVar)) == ToolChain::STD_CXX11 ? ProjectPart::CXX11 : ProjectPart::CXX;
|
||||
else
|
||||
part->language = CPlusPlus::CppModelManagerInterface::ProjectPart::CXX;
|
||||
part->language = CPlusPlus::CppModelManagerInterface::ProjectPart::CXX11;
|
||||
|
||||
part->sourceFiles = pro->variableValue(CppSourceVar);
|
||||
part->headerFiles += pro->variableValue(CppHeaderVar);
|
||||
|
||||
Reference in New Issue
Block a user