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