Disable Eclipse's error discovery. (Codan false positives)

后端 未结 5 924
遥遥无期
遥遥无期 2020-11-29 09:23

My experience until now is, that the error discovery of Eclipse is horribly buggish without any solutions (Tried __GXX_EXPERIMENTAL_CXX0X__, -std=c++0x

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-29 09:57

    On a fresh Eclipse install, triggering one macro and rebuilding the index solved it:

    Projects->Properties->Preprocessor Includes Select GNU C++ Select CDT User Setting entries Press Add

    and add a preprocessor macro with name __cplusplus and value 201103L.

    Finally, rebuild the index. (Project->C/C++ Index->Rebuild)

提交回复
热议问题