scan-build http://clang-analyzer.llvm.org/scan-build.html is a clang based tool designed to provide static analysis over C code files.