- Joined
- Jan 8, 2019
- Messages
- 56,609
- Solutions
- 2
- Reputation
- 32
- Reaction score
- 100,454
- Points
- 2,313
- Credits
- 32,610
6 Years of Service
76%

Cppcheck is a static analysis tool for C/C++ code. It provides a unique code analysis to detect bugs and focuses on detecting undefined behavior and dangerous coding constructs. The goal is to detect only real errors in the code (i.e. have very few false positives).
Features
Unique code analysis that detects various kinds of bugs in your code.
Both command line interface and graphical user interface are available.
Cppcheck has a strong focus on detecting undefined behaviour.
Undefined behaviour
Dead pointers
Division by zero
Integer Overflows
Invalid bit shift operands
Invalid conversions
Invalid usage of STL
Memory management
Null pointer dereferences
Out of bounds checking
Uninitialized variables
Writing const data
Changelog v2.10
Analysis:
Many improvements and fixes in checkers.
Windows binaries currently default to the “win32A” and “win64” platform respectively. Starting with Cppcheck 2.13 they will default to ‘native’ instead. Please specify ‘–platform=win32A’ or ‘–platform=win64’ explicitly if you rely on this.
New check: use memset/memcpy instead of loop
CLI:
if the file provided via “–file-list” cannot be opened it will now error out
add command-line option “–disable=” to individually disable checks
GUI:
Detect when installed version is old. There is setting in Edit/Preferences to turn this on.
Fix path issue with backslashes
Cleanup *.ctu-info files after analysis
Build:
the deprecated Makefile option SRCDIR is no longer accepted
added CMake option BUILD_CORE_DLL to build lib as cppcheck-core.dll with Visual Studio
To see this hidden content, you must like this content.