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

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt Creator 6.0.0
    • Fix Version/s: Qt Creator 6.0.1
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:
      Windows 10 64bit
    • Platform/s:
      Windows
    • Commits:
      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

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes