On 24 ec, 03:14, <wangdo...@gmail.comwrote:
I need a C++ code style checker. Which is the best choice? free or for
fee.
Which is the best choice? Of course this one, which fits best your
requirements :-)
I think you do not mean code formatting, it is easy with any good
editor and there are automatic formatters (for example astyle).
If you need more sophisticated checker, you should first of all turn
on all warnings (but be careful if you are using Microsoft compiler -
it produces many warnings on their own standard C++ library). Some
compilers may have other special flags.
You can compile your program with more compilers and on more
platforms, it helps to find some portability issues, but it is not
always possible.
You can make code review, but it is not automatic process.
As far as I know there is some checking from Parasoft, but it is not
cheap.