Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
Qt Creator 4.8.0, Qt Creator 4.8.1
-
None
Description
When using the clang analyzer, generic projects now default to using c++03 mode. For supported build systems (qmake/cmake/etc) it seems to be able to find the C++ language mode, but for generic projects I cannot find a way to tell it to use c++11 or newer. There are many warnings in the editor about 'auto' not being supported, and so on.
I have tried setting 'std=c++11' in the kit compiler platform flags, I have set CMAKE_CXX_STANDARD:STRING=11 in the cmake configuration for my kits, I have even set -Wno-c++11-extensions for the warnings, all to no avail.
My platform is CentOS 7, with gcc 4.8.5 at the base, but also with gcc 4.9 and clang 5.0 installed. My kit is using clang 5.0 in c++11 and c++14 mode. It doesn't appear to be a platform-specific issue.
Without a way to set compiler settings for a generic project, is there a way to work around it and convince qtcreator to use c++11 or c++14 mode by default for parsing?
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-19668 Cannot specify language version for Clang Code Model for Generic Project
-
- Closed
-