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:
@@ -441,7 +441,7 @@ void AutotoolsProject::updateCppCodeModel()
|
||||
part->sourceFiles = m_files;
|
||||
part->defines = macros;
|
||||
part->frameworkPaths = allFrameworkPaths;
|
||||
part->language = CPlusPlus::CppModelManagerInterface::ProjectPart::CXX;
|
||||
part->language = CPlusPlus::CppModelManagerInterface::ProjectPart::CXX11;
|
||||
pinfo.appendProjectPart(part);
|
||||
|
||||
modelManager->updateProjectInfo(pinfo);
|
||||
|
Reference in New Issue
Block a user