Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
Qt Creator 4.0.0
-
None
-
Qt Creator 4.0.0
Qt 5.6.0
Linux 4.5
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 ?