OCLint – static code analysis tool

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

This is free and open source software.

Key Features

  • Looks for potential issues that aren’t visible to compilers including:
    • 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.

Website: github.com/oclint/oclint
Support:
Developer: Ryuichi Intellectual Property and the OCLint project contributor
License: BSD 3-Clause “New” or “Revised” License

OCLint is written in C++. Learn C++ with our recommended free books and free tutorials.

Related Software

C and C++ Linters
OCLintStatic code analysis tool for improving quality and reducing defects
cpplintStatic code checker for C++
UncrustifySource code beautifer
Include What You UseSource analysis tool for C and C++ projects built on Clang
CppcheckStatic analysis tool for C/C++ code
ClangFormatCode formatting tool
Clang-TidyClang-based C++ “linter” tool

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted