I am writing my project in C using QtCreator as IDE and CMake for assembly. QtCreator ver. > = 4.0.0 include the Clang static analyzer, which I am trying to use.
In my set of CMakeLists.txt:
set(CMAKE_C_FLAGS "-std=gnu99 ${CMAKE_C_FLAGS}")
When I run the analysis in the console, get errors:
error: invalid argument '-std=gnu++11' not allowed with 'C/ObjC'
How to pass '-std = gnu99' to the clang analyzer? Maybe it is hardcoded in the sources of the QtCreator plugin?
UDP1 : it looks like this is a QtCreator error: https://bugreports.qt.io/browse/QTCREATORBUG-16290
source
share