all options
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Source: cppcheck  ]

Package: cppcheck (2.14.0-1 and others)

Links for cppcheck


Debian Resources:

Download Source Package cppcheck:


External Resources:

Similar packages:

tool for static C/C++ code analysis (CLI)

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;

This package contains the command-line interface for cppcheck.

Tags: Software Development: C Development, C++ Development, Libraries, devel::testing-qa, implemented-in::c, Implemented in: C++, User Interface: interface::commandline, role::devel-lib, 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) 2.12.0-1 1,948.2 kB10,502.0 kB [list of files]
amd64 2.14.0-1+b1 2,139.3 kB9,916.0 kB [list of files]
arm64 2.14.0-1+b1 1,891.1 kB9,486.0 kB [list of files]
armel 2.14.0-1+b1 1,837.8 kB9,333.0 kB [list of files]
armhf 2.14.0-1+b1 1,904.0 kB7,925.0 kB [list of files]
hppa (unofficial port) 2.12.0-1 2,046.3 kB9,906.0 kB [list of files]
i386 2.14.0-1+b1 2,296.0 kB10,205.0 kB [list of files]
ia64 (unofficial port) 2.12.0-1 2,422.9 kB15,613.0 kB [list of files]
m68k (unofficial port) 2.11-3 1,771.8 kB9,336.0 kB [list of files]
mips64el 2.14.0-1+b1 1,934.8 kB10,850.0 kB [list of files]
ppc64 (unofficial port) 2.14.0-1+b1 2,041.7 kB10,894.0 kB [list of files]
ppc64el 2.14.0-1+b1 2,081.5 kB10,574.0 kB [list of files]
riscv64 2.14.0-1+b1 2,097.5 kB8,638.0 kB [list of files]
s390x 2.14.0-1+b1 2,025.3 kB9,766.0 kB [list of files]
sh4 (unofficial port) 2.12.0-1 2,088.6 kB8,960.0 kB [list of files]
sparc64 (unofficial port) 2.14.0-1+b1 1,804.9 kB10,007.0 kB [list of files]
x32 (unofficial port) 2.9-1 1,969.5 kB9,332.0 kB [list of files]