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

Cannot specify language version for Clang Code Model for Generic Project

    XMLWordPrintable

Details

    • 62c8aecb5fd950a56b17483bccd176f4f77245e4 (qt-creator/qt-creator/master)

    Description

      When using the Clang Code Model (via Clang v5.0.1) on a Generic Project, there's no way of specifying the C++ language version to use.  Enabling CCM debug output reveals that it uses C++11 by default:

      qtc.clangbackend.timers: ClangCodeModelServer::updateVisibleTranslationUnits needed 0 ms
      Arguments to libclang: -m64 -target x86_64-redhat-linux -std=c++11 -fcxx-exceptions -fexceptions ...
      

      This seems to contradict kosjar's comment on QTCREATORBUG-19329:

      Regarding the standard option, this comes from the project manager. If none is provided from that, the code model assumes the latest that is supported, which is currently C++17 (only a subset of it because of the aged libclang 3.9).

      Attachments

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-19668
          # Subject Branch Project Status CR V

          Activity

            People

              kosjar Nikolai Kosjar
              camden camden
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes