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
|
| 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 |
| Aug 31, 2024 4:00pm |
|
0 |
VERSION_BUMP |
ec6a4791 |
| Feb 13, 2024 9:00am |
|
1 |
VERSION_BUMP |
303c7552 |
| Feb 12, 2024 9:53pm |
|
1 |
VERSION_BUMP |
9373bd0c |
| Jan 13, 2024 8:42pm |
|
0 |
VERSION_BUMP |
e649bd52 |
| Sep 26, 2023 8:22pm |
|
0 |
VERSION_BUMP |
bfe202af |
| Sep 20, 2023 12:15pm |
|
0 |
VERSION_BUMP |
8111fc76 |
| Sep 10, 2023 1:47pm |
|
0 |
VERSION_BUMP |
a0b03973 |
|