QT Creator, syntax checking for c++11

前端 未结 4 1682
时光说笑
时光说笑 2021-01-12 06:17

How to turn off error highlighting (red wave under the code) for c++11 cycle range-based operators like that?

int myint[] = {1,2,3,4,5};
for (auto x : myint         


        
4条回答
  •  别那么骄傲
    2021-01-12 06:55

    If you're writing in C++11 you should change from using QT Creator as the IDE to using Eclipse CDT. At least this is how I solved this problem. QT Creator doesn't seem to have any way to customize this real-time syntax checking. Eclipse on the other hand is extensively customizable in this regard.

    Update: I think that QtCreator has improved its support for newer versions of C++ since this answer was given, so it is no longer correct. I can't delete it as it is an accepted answer.

提交回复
热议问题