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

Generic projects cannot be set to use c++11 or newer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.8.0, Qt Creator 4.8.1
    • None
    • All

      When using the clang analyzer, generic projects now default to using c++03 mode.  For supported build systems (qmake/cmake/etc) it seems to be able to find the C++ language mode, but for generic projects I cannot find a way to tell it to use c++11 or newer.  There are many warnings in the editor about 'auto' not being supported, and so on.

      I have tried setting 'std=c++11' in the kit compiler platform flags, I have set CMAKE_CXX_STANDARD:STRING=11 in the cmake configuration for my kits, I have even set -Wno-c++11-extensions for the warnings, all to no avail.

      My platform is CentOS 7, with gcc 4.8.5 at the base, but also with gcc 4.9 and clang 5.0 installed.  My kit is using clang 5.0 in c++11 and c++14 mode. It doesn't appear to be a platform-specific issue.

      Without a way to set compiler settings for a generic project, is there a way to work around it and convince qtcreator to use c++11 or c++14 mode by default for parsing?

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

            kosjar Nikolai Kosjar
            mikefarny Mike Farnsworth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes