Main development forum.


Postby kimmov » Fri Oct 31, 2008 11:54 pm

I just submitted a patch to add cppcheck (http://cppcheck.sourceforge.net/)into WinMerge SVN:
#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
Posts: 562
Joined: Thu Sep 11, 2008 8:51 pm
Location: Finland

Return to Developers

Who is online

Users browsing this forum: No registered users and 3 guests