A static source code analysis tool to improve quality and reduce defects for C, C++ and Objective-C
C++ Python CMake Other
Latest commit 0d0e03a Feb 7, 2018
ryuichis Merge pull request #493 from ryuichis/llvm-5.0.1
LLVM 5.0.1 and Release 0.13.1

README.md

OCLint - http://oclint.org

Travis CI Status Coverage Status

OCLint is a static code analysis tool for improving quality and reducing defects by inspecting C, C++ and Objective-C code.

It looks for potential problems that aren't visible to compilers, for example:

  • Possible bugs - empty if/else/try/catch/finally statements
  • Unused code - unused local variables and parameters
  • Complicated code - high cyclomatic complexity, NPath complexity and high NCSS
  • Redundant code - redundant if statement and useless parentheses
  • Code smells - long method and long parameter list
  • Bad practices - inverted logic and parameter reassignment
  • ...

For more information, visit http://oclint.org