Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Try to use CppCheck or LLVM's scan-build. They are pretty decent. I've been using them for a few weeks for now and I found quite a few errors and send patches to various open projects (Pidgin, util-linux, GHC).


Ah, yes, I'm familiar with these tools. They're indeed pretty good.

In addition to them, I also use Coverity (they offer free licenses for open source projects) and Coccinelle (although it's a tool to refactor/create semantic patches, can be also used to find defects if you know what you're looking for -- useful if you fix one bug and you're wondering if there are more like it lurking).

Having different opinions about your codebase is often good as the approach in finding defects is usually different between them. For instance, stuff by the PVS people seem pretty good to find copy/paste mistakes, which I've rarely found with other tools.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: