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

    • Commits:
      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 Nikolai 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

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

            Activity

              People

              Assignee:
              kosjar Nikolai Kosjar
              Reporter:
              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