Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.15.2
-
None
Description
With QBS project, Clang code model does not recognize any C++20 features.
I have tried "c+latest" or "c+20" for cpp.cxxLanguageVersion value, and cpp.cxxFlags: ["/std:c++latest"] but none of them works.
I have tested with CMake project and confirmed that CMake project with set(CMAKE_CXX_STANDARD 20) works fine.
FYI, current QBS implementation does not distinguish "c+20" and "c+latest" value.
In fact, all strings except in ["c++17", "c++14", "c++11", "c++98"] will append "/std:c++latest" as you can see here: https://github.com/qbs/qbs/blob/master/share/qbs/modules/cpp/msvc.js#L96
Attachments
For Gerrit Dashboard: QTCREATORBUG-26089 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
367372,2 | QbsProjectManager: Make C++20 projects work with MSVC | 5.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |