all options
squeeze  ] [  wheezy  ] [  sid  ]
[ Source: cppcheck  ]

Package: cppcheck (1.61-1 and others)

Links for cppcheck

Screenshot

Debian Resources:

Download Source Package cppcheck:

Maintainer:

External Resources:

Similar packages:

tool for static C/C++ code analysis

Cppcheck is a command-line tool that tries to detect bugs that your C/C++ compiler doesn't see. It is versatile, and can check non-standard code including various compiler extensions, inline assembly code, etc. Its internal preprocessor can handle includes, macros, and several preprocessor commands. While Cppcheck is highly configurable, you can start using it just by giving it a path to the source code.

It includes checks for:

 * pointers to out-of-scope auto variables;
 * assignment of auto variables to an effective parameter of a function;
 * out-of-bounds errors in arrays and STL;
 * missing class constructors;
 * variables not initialized by a constructor;
 * use of memset, memcpy, etcetera on a class;
 * non-virtual destructors for base classes;
 * operator= not returning a constant reference to itself;
 * use of deprecated functions (mktemp, gets, scanf);
 * exceptions thrown in destructors;
 * memory leaks in class or function variables;
 * C-style pointer cast in C++ code;
 * redundant if;
 * misuse of the strtol or sprintf functions;
 * unsigned division or division by zero;
 * unused functions and struct members;
 * passing parameters by value;
 * misuse of signed char variables;
 * unusual pointer arithmetic (such as "abc" + 'd');
 * dereferenced null pointers;
 * incomplete statements;
 * misuse of iterators when iterating through a container;
 * dereferencing of erased iterators;
 * use of invalidated vector iterators/pointers;

Tags: Software Development: C Development, C++ Development, Testing and QA, Implemented in: implemented-in::c++, interface::commandline, Role: Program, Scope: Utility, Security: security::TODO, use::analysing, Purpose: Checking, Works with: Source Code

Other Packages Related to cppcheck

  • depends
  • recommends
  • suggests
  • enhances

Download cppcheck

Download for all available architectures
Architecture Version Package Size Installed Size Files
alpha (unofficial port) 1.61-1 753.1 kB2,123.0 kB [list of files]
amd64 1.61-1+b1 521.0 kB1,684.0 kB [list of files]
armel 1.61-1+b1 439.4 kB1,458.0 kB [list of files]
armhf 1.61-1+b1 451.9 kB1,142.0 kB [list of files]
hppa (unofficial port) 1.61-1+b1 551.9 kB1,807.0 kB [list of files]
hurd-i386 1.61-1+b1 525.3 kB1,710.0 kB [list of files]
i386 1.61-1+b1 524.5 kB1,710.0 kB [list of files]
kfreebsd-amd64 1.61-1+b1 521.0 kB1,652.0 kB [list of files]
kfreebsd-i386 1.61-1+b1 524.4 kB1,678.0 kB [list of files]
m68k (unofficial port) 1.61-1 432.4 kB1,626.0 kB [list of files]
mips 1.61-1+b1 465.2 kB2,113.0 kB [list of files]
mipsel 1.61-1+b1 474.8 kB2,113.0 kB [list of files]
powerpc 1.61-1+b1 486.2 kB1,814.0 kB [list of files]
powerpcspe (unofficial port) 1.61-1 477.5 kB1,678.0 kB [list of files]
ppc64 (unofficial port) 1.61-1 493.2 kB1,945.0 kB [list of files]
s390x 1.61-1+b1 519.2 kB1,952.0 kB [list of files]
sh4 (unofficial port) 1.61-1 718.5 kB1,706.0 kB [list of files]
sparc 1.61-1+b1 446.5 kB1,631.0 kB [list of files]
sparc64 (unofficial port) 1.61-1 675.5 kB1,716.0 kB [list of files]
x32 (unofficial port) 1.61-1 554.3 kB1,706.0 kB [list of files]