Cppcheck

Static code analysis tool From Wikipedia, the free encyclopedia

Cppcheck is a static code analysis tool for the C and C++ programming languages. It is a versatile tool that can check non-standard code.[2] The creator and lead developer is Daniel Marjamäki.

Original authorDaniel Marjamäki
Initial releaseMay 8, 2007; 18 years ago (2007-05-08)
Stable release
2.18.0[1] Edit this on Wikidata / 20 July 2025; 7 months ago (20 July 2025)
Written inC++
Quick facts Original author, Initial release ...
Cppcheck
Original authorDaniel Marjamäki
Initial releaseMay 8, 2007; 18 years ago (2007-05-08)
Stable release
2.18.0[1] Edit this on Wikidata / 20 July 2025; 7 months ago (20 July 2025)
Written inC++
Operating systemCross-platform
Available inEnglish, Dutch, Finnish, Swedish, German, Russian, Japanese, Serbian, Spanish, French, Italian, Korean, Chinese
TypeStatic code analysis
LicenseGNU General Public License
Websitecppcheck.sourceforge.io
Repository
Close

Cppcheck is Open-core software, with its open-source core code under the GNU General Public License.

Features

Cppcheck supports a wide variety of static checks that may not be covered by the compiler itself. These checks are static analysis checks that can be performed at a source code level. The program is directed towards static analysis checks that are rigorous, rather than heuristic in nature.

Some of the checks that are supported include:

As with many analysis programs, there are many unusual cases of programming idioms that may be acceptable in particular target cases or outside of the programmer's scope for source code correction. A study conducted in March 2009 identified several areas where false positives were found by Cppcheck, but did not specify the program version examined.[4] Cppcheck has been identified for use in systems such as CERN’s 4DSOFT meta analysis package,[5] for code verification in high energy particle detector readout devices,[6] system monitoring software for radio telescopes[7] as well as in error analysis of large projects, such as OpenOffice.org[8] and the Debian archive.[9]

Development

The project is actively under development[10] and is actively maintained in different distributions.[11][12] It has found valid bugs in a number of popular projects[13] such as the Linux kernel and MPlayer.[14]

Plugins

See also

References

Related Articles

Wikiwand AI