Cppcheck Static Analysis Tool
cppcheck.sourceforge.io
2
Leaving SiteNav
External Link Disclaimer
You are about to visit cppcheck.sourceforge.io. This website is not operated by us. We are not responsible for its content or privacy practices.
About this website
Cppcheck is a static analysis tool for C and C++ code that detects bugs, undefined behavior, and dangerous coding constructs without actually executing the program. Created by Daniel Marjamaki in 2007, Cppcheck is designed to complement compilers by finding issues that compilers do not report, focusing on finding real bugs rather than style issues. Key features: thorough analysis using data flow analysis, value flow tracking, and symbolic execution for detecting bugs that require understanding program logic and control flow. Detects buffer overflows, null pointer dereferences, memory leaks, double frees, integer overflows, division by zero, uninitialized variables, out-of-bounds access, resource leaks, and other common C and C++ bugs. Unused functions detection to identify dead code. Assert handling to reduce false positives by respecting programmer assertions about preconditions and postconditions. Configuration via platform-specific defines, include paths, and suppressions for fine-grained control. Suppression of false positives via inline comments (cppcheck-suppress) and XML suppression files. Addon tools for MISRA C 2012 compliance checking, cert-c-2016 checking, and Y2038 (Year 2038 problem) checking. Preprocessor for analyzing code with various configurations (build types, platform defines) to maximize coverage. Project file format for defining project configuration including include directories, defines, and platform settings. Command-line interface and GUI (Cppcheck GUI) for interactive analysis and result browsing. Output formats including plain text, XML (version 2), HTML, and JSON for CI/CD integration. Integration with IDEs including Visual Studio, Eclipse, Code::Blocks, and CLion. Thread-safe parallel analysis for faster processing on multi-core systems. Addon for generating call graphs. Cross-platform on Windows, Linux, and macOS. Open source under GPL.
Statistics
2
Views
0
Clicks
0
Like
0
Dislike