Cppcheck

from Wikipedia, the free encyclopedia
Cppcheck
Basic data

Maintainer Daniel Marjamäki u. a.
Publishing year May 8, 2007
Current  version 2.1
(June 13, 2020)
operating system platform independent
programming language C ++
category Programming tool
License GNU General Public License
German speaking Yes
http://cppcheck.sourceforge.net

Cppcheck is a program for static code analysis for the programming languages C and C ++ . It is actively developed and published under the GNU General Public License . It supports a wide variety of tests and is able to check non-standardized code.

Functions

Cppcheck supports a number of static tests that compilers cannot or only partially perform, such as: B .:

  • Array overflows
  • Resource and memory leaks
  • Use of obsolete functions
  • Use of functions that are not thread safe are
  • incorrect use of the standard template library
  • Inaccuracies when calling standard C library functions, e.g. B. suspicious format strings in printf functions
  • incorrect exception handling
  • various speed and style optimizations
  • incorrect use of pointer variables
  • uninitialized variable
  • "Suspicious" expressions such as B. Semicolon after condition

distribution

The program is distributed and co-developed by some Linux distributions and exists both independently and in the form of plug-ins for various development environments:

In addition to the version for the command line, there is a graphical user interface based on Qt .

Cppcheck is used in some large projects and has already helped to find and fix bugs. These include the Linux kernel , OpenOffice.org and LibreOffice , Debian and MPlayer .

Web links

Individual evidence

  1. Cppcheck on GitHub
  2. "A Survey of C and C ++ Software Tools for Computational Science" (PDF; 223 kB) ( Memento of the original from March 12, 2012 in the Internet Archive ) Info: The archive link was inserted automatically and has not yet been checked. Please check the original and archive link according to the instructions and then remove this notice.  @1@ 2Template: Webachiv / IABot / www.softeng.rl.ac.uk
  3. List of obsolete functions
  4. Cppcheck in Debian
  5. Cppcheck in FreeBSD
  6. Cppcheclipse
  7. Cppcheck plugin for Jenkins
  8. Cppcheck add-in. In: Visual Studio Marketplace. Retrieved October 12, 2018 .
  9. List of some important errors found in the Cppcheck Wiki
  10. "Hunting for vulnerabilities in large software: the OpenOffice suite" (PDF; 130 kB)
  11. ^ Introducing the "Debian's Automated Code Analysis" (DACA) project