Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

oclint

> 编程语言
Open source

A static source code analysis tool to improve quality and reduce defects for C, C++ and Objective-C

3.9K stars0 likes0 views
WebsiteGitHub

About

A static source code analysis tool to improve quality and reduce defects for C, C++ and Objective-C

OCLint - https://oclint.org

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 https://oclint.org

GitHub Issues· 15 open

View all on GitHub
  • #611

    Compilation contains multiple jobs

    ra:keep-openUpdated Nov 28, 2025
  • #378

    False positives due to macro expansion

    ra:keep-openUpdated Oct 21, 2025
  • #480

    OCLint show many 'n errors reported.' messages and generating an empty report.

    ra:keep-openUpdated Nov 15, 2023
  • #413

    High memory consumption for large projects

    ra:keep-openUpdated Jul 26, 2021
  • #537

    Allow a way to give an output folder to -enable-clang-static-analyzer

    featurera:keep-openUpdated Mar 27, 2021
  • #412

    Feature request: lint files in parallel

    ra:keep-openUpdated Feb 28, 2019
  • #489

    Feature Request: Distribute OCLint through CocoaPods

    ra:keep-openUpdated Feb 20, 2018
  • #382

    Any way to get cmake to output an Xcode project file?

    ra:keep-openUpdated Dec 29, 2017
  • #453

    NS_ENUM、NS_OPTION Visit failed~!

    ra:keep-openUpdated Aug 19, 2017
  • #211

    Multiple report types

    enhancementra:keep-openUpdated Jul 14, 2017

Highlights

  • •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

> Tags

C++

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言