Unsolved How to disable c++ warning for c++17
-
The new QtCreator has a nicer c++ error check with libclang.
But my code is in c++17, and the checker seems to be unfriendly to c++17 syntax.
Some legit syntax is treated as errors. Others are shown as unwanted warning messages, for example "constexpr is not supported before c++17"
How do I config the checker to recognize c++17?
-
@billconan have you added
CONFIG+=c++1z
in pro file? -
yes, I always add it. but it's useless in terms of controlling qtcreator.
-
Hi,
What version of Qt Creator are you using ?
On what platform ? -
@SGaist ubtuntu 17.10 and the latest QtCreator, 4.7.2
-
@billconan do you have a minimal example for us to counter check?
Also, Creator 4.8 is just around the corner, there are already beta snapshots to try.