cppcheck
« Back to VersTracker
Description:
Static analysis of C and C++ code
Type: Formula  |  Latest Version: 2.18.0@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: static-analysis c-plus-plus code-quality security linter
Install: brew install cppcheck
About:
Cppcheck is a static analysis tool for C and C++ code that detects bugs, memory leaks, and undefined behavior beyond what compilers typically catch. It focuses on detecting undefined behavior, dangerous programming constructs, and resource leaks. The tool is designed to be highly configurable and provides a low false-positive rate.
Key Features:
  • Detects memory leaks and resource management issues
  • Identifies undefined behavior and portability issues
  • Supports MISRA C and MISRA C++ coding standards
  • Extensible via custom rules and addons
  • Integrates with CI/CD pipelines and IDEs
Use Cases:
  • Preventing bugs in C/C++ code before compilation
  • Enforcing coding standards in team projects
  • Identifying security vulnerabilities in legacy code
  • Improving code quality in CI/CD pipelines
Alternatives:
  • clang-tidy – Part of LLVM, offers deep integration with Clang and extensive modern C++ checks
  • PVS-Studio – Commercial tool with advanced analysis capabilities and GUI support
  • SonarQube – Platform for continuous code quality inspection supporting multiple languages
Version History
Detected Version Rev Change Commit
Nov 3, 2025 6:15pm 0 VERSION_BUMP 385fbd64
Oct 14, 2025 10:24am 0 VERSION_BUMP 7cdbb0ba
Oct 14, 2025 1:49am 0 VERSION_BUMP fc481c4e
Sep 14, 2025 2:25am 0 VERSION_BUMP 4b7d2a7f
Oct 27, 2024 6:29pm 0 VERSION_BUMP 39cf461f