OCLint
Static analysis tool that finds defects in C, C++ and Objective-C code
...It examines source code for potential defects that conventional compiler diagnostics may overlook. Its analysis rules identify unused variables, unnecessary statements, empty conditional blocks, and problematic exception handling. Integrated complexity metrics evaluate cyclomatic complexity, NPath complexity, and non-commenting source statements. The utility also identifies excessively long methods, extensive parameter lists, and problematic programming practices. Customizable analysis rules enable developers to adapt inspections to project requirements. ...