Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-26089

Clang code model cannot recognize C++20 features with QBS project

    XMLWordPrintable

Details

    • Windows

    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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            xylosper Byoung-young Lee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes