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

clang code model does not recognize c++23 option properly for MSVC

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 6.0.1
    • Qt Creator 6.0.0
    • C/C++/Obj-C++ Support
    • None
    • Windows 10 64bit
    • Windows
    • 02f93f68d64ea72e6cfd57ed2b14b344d26b05b0 (qt-creator/qt-creator/6.0)

    Description

      I set cpp.cxxLanguageVersion: "c+23" for my qbs project in order to set "/std:clatest" flag for MSVC to enable some features which are disabled in "/std:c+20".

      With cpp.cxxLanguageVersion: "c+23", clang code model does not recognize C+ standard version and displays invalid errors.

      This is case for both of clangd and libclang.
      See the attachment for details.

      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:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes