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

Unable to run static analysis in C++14 mode

    XMLWordPrintable

Details

    Description

      I have a QMake based (.pro) project with

      CONFIG += c++14

      and

      QMAKE_CXXFLAGS += -std=c++14

      It builds fine with gcc and clang.

      When I run the clang static analyzer, it fails on most files, complaining about code using C++14 features. I noticed it was run with

      -std=gnu++11

      Maybe it's just me, but I took some time looking in QtCreator settings, kiks, and googling it, but I couldn't find any way to make Qt Creator to run clang analyzer in C++14 mode or more generally to change its command line arguments. Also, I replaced every occurence of

      gnu++11

      with

      c++14

      in /usr/share/qt/mkspecs and /usr/share/qt4/mkspecs so it might be hardcoded somewhere ?

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            antoinep92 Antoine Poliakov
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes