Unsolved How to specify C/C++ standard to Clang Code Model in imported project?
-
Hello, I'm trying to work on some Makefile project that heavily relies on GNU-isms, so by default, new clang code model spews a lot of warnings/errors because some custom types are not defined or not valid in ISO C, while they are fine with -std=gnu99. Is there a way to specify it somewhere?
It loks like there was a way before QtC 4.5 according to https://stackoverflow.com/a/38323763/4114447 (coincedentally it was also the first thing I tried on my own), but it was since removed (IMHO, wrongly).
If there is no such way, then it's definitely a bug as flags such as
-std
can heavily influence the errors/warnings and general usability of code model. -
Any help? I've only found some options specific to certain standard compatibility, but that doesn't impact how the code is parsed.
-
The most relevant bug for that is QTCREATORBUG-20613, but it seems you already found that one.