Cppcheck

Cppcheck is a program for static code analysis for C and C . It is being actively developed and released under the GNU General Public License. It supports a variety of tests and is able to check non-standard code.

Functions

Cppcheck support a series of static tests, which are not or only partially performed by compilers, such as:

  • Array overflows
  • Resource and memory leaks
  • Use of obsolete functions
  • Using functions that are not thread-safe
  • Improper use of the Standard Template Library
  • Inaccuracies when calling C standard library functions, such as suspicious format strings in printf functions
  • Incorrect exception handling
  • Different speed and style optimizations
  • Incorrect use of pointer variables
  • Uninitialized variables
  • "Suspicious " expressions such as Semicolon after condition

Dissemination

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

  • Code :: Blocks (integrated)
  • CodeLite (integrated)
  • Eclipse
  • Gedit
  • Jenkins

Exists Besides 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 eliminate errors. These include the Linux kernel, OpenOffice.org and LibreOffice, Debian and MPlayer.

History of development

The program has been developed since May 2007. At intervals of one to three months a new version with new and improved tests. The following table gives an overview of the previously released versions and their release dates.

205941
de