#2212819 Add cppcheck http://winmerge.org/patch/2212819
cppcheck is a statical code checker for C++ code. I already ran Src/ folder with it. And it found several errors. Memory leaks etc. I didn't look at those yet, so it is possible there are some false positives. Looks like a tool we definitely need and want to start using.
By adding it into our SVN I:
- want to make it easier to compile and use it (just compile and run)
- later want to force use of it (no excuses about installing etc)
- want to automate/script its usage
Use of cppcheck is simple:
- compile it (open the cppcheck.sln solution file into Visual Studio and build)
- copy the executable (cppcheck.exe) into source folder you want to check
- run the exe in console: cppcheck --all --recursive
