Cppcheck
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:
- Code :: Blocks (integrated)
- CodeLite (integrated)
- Eclipse
- Jenkins
- Visual Studio (via the plug-in Cppcheck add-in )
- PlatformIO (integrated)
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
- Cppcheck website
- Cppcheck manual (PDF; 178 kB)
Individual evidence
- ↑ Cppcheck on GitHub
- ↑ "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.
- ↑ List of obsolete functions
- ↑ Cppcheck in Debian
- ↑ Cppcheck in FreeBSD
- ↑ Cppcheclipse
- ↑ Cppcheck plugin for Jenkins
- ↑ Cppcheck add-in. In: Visual Studio Marketplace. Retrieved October 12, 2018 .
- ↑ List of some important errors found in the Cppcheck Wiki
- ↑ "Hunting for vulnerabilities in large software: the OpenOffice suite" (PDF; 130 kB)
- ^ Introducing the "Debian's Automated Code Analysis" (DACA) project