Making GCC and Other C++ Compilers Very Strict

后端 未结 7 828
深忆病人
深忆病人 2021-02-01 06:45

I\'m working on a large collaborative C++ project that is both developed and run on various flavors of Linux, OS X and Windows. We compile across these platforms with GCC, Visua

7条回答
  •  萌比男神i
    2021-02-01 07:39

    Beside the pedantic-error that everyone else suggested, IMO, it's always good to run lint as part of your compile process.

    There are some tools out there:

    • cpplint (free)
    • gimple lint
    • coverity

    They will save a lot of your time.

提交回复
热议问题