cppcheck - tool for static C/C++ code analysis

Property Value
Distribution Debian 8 (Jessie)
Repository Debian Main amd64
Package name cppcheck
Package version 1.67
Package release 1
Package architecture amd64
Package type deb
Installed size 2.72 KB
Download size 683.42 KB
Official Mirror ftp.br.debian.org
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;


Package Version Architecture Repository
cppcheck_1.67-1_i386.deb 1.67 i386 Debian Main
cppcheck - - -


Name Value
libc6 >= 2.15
libgcc1 >= 1:4.1.1
libpcre3 >= 8.10
libstdc++6 >= 4.9
libtinyxml2-2 >= 2.0.2


Type URL
Binary Package cppcheck_1.67-1_amd64.deb
Source Package cppcheck

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install cppcheck deb package:
    # sudo apt-get install cppcheck




2014-10-19 - Reijo Tomperi <aggro80@users.sourceforge.net>
cppcheck (1.67-1) unstable; urgency=low
* New upstream release
* control: Standards-version 3.9.5 -> 3.9.6
* copyright: Remove htdocs, remove nonexisting files, update years
2014-08-03 - Reijo Tomperi <aggro80@users.sourceforge.net>
cppcheck (1.66-1) unstable; urgency=medium
* New upstream release
* patches: Remove all patches
* rules: Install without makefile
2014-05-11 - Reijo Tomperi <aggro80@users.sourceforge.net>
cppcheck (1.65-1) unstable; urgency=low
* New upstream release. Closes: #734617
* rules: Disable tests, disable upstream changelog
* control: Standards-version: 3.9.4 -> 3.9.5
* watch: Add dversionmangle
* copyright: htdocs excluded, format url updated. Closes: #735502
* patches: Disable installation of htmlreport and fix CFGDIR install
* dirs: Add usr/share/cppcheck/cfg
2013-10-30 - Reijo Tomperi <aggro80@users.sourceforge.net>
cppcheck (1.62-1) unstable; urgency=low
* New upstream release
* rules: Install upstream.changelog to /usr/share/doc/cppcheck/
2013-08-04 - Reijo Tomperi <aggro80@users.sourceforge.net>
cppcheck (1.61-1) unstable; urgency=low
* New upstream release
* rules: add INCLUDE_FOR_LIB to makeit work with new upstream makefile
* Fix false positive, address of uninitialized variable, Closes: #706494
2013-06-04 - Reijo Tomperi <aggro80@users.sourceforge.net>
cppcheck (1.60.1-1) unstable; urgency=low
* New upstream release
* control: Standards-Version: 3.9.3 -> 3.9.4
2013-04-01 - Reijo Tomperi <aggro80@users.sourceforge.net>
cppcheck (1.59-1) unstable; urgency=low
* New upstream release
* control: Change libtinyxml-dev to libtinyxml2-dev
* rules: Change -ltinyxml to -ltinyxml2
2013-01-19 - Reijo Tomperi <aggro80@users.sourceforge.net>
cppcheck (1.58-1) unstable; urgency=low
* New upstream release
* copyright: update and add some new authors
* Fix c++11 handling, Closes: #688759
2012-11-04 - Reijo Tomperi <aggro80@users.sourceforge.net>
cppcheck (1.57-1) unstable; urgency=low
* New upstream release
* control: debhelper requirement upgraded from 8 to 9
* control: removed hardening-includes
* compat: upgraded from 8 to 9
* rules: deletet a lot lines related to hardening
* Fix internal error in Cppcheck, Closes: #686976
2012-09-01 - Reijo Tomperi <aggro80@users.sourceforge.net>
cppcheck (1.56-1) unstable; urgency=low
* New upstream release
* rules: Removed -Iexternals* to avoid using from headers when compiling
* rules: Removed duplicate HAVE_RULES

See Also

Package Description
cpphs_1.18.5-1_amd64.deb Simplified cpp-a-like preprocessor for Haskell
cppman_0.4.1-1_all.deb C++ 98/11 manual pages for Linux, with source from cplusplus.com
cppo_0.9.3-3_amd64.deb cpp for OCaml
cppreference-doc-en-html_20140827+dfsg0-1_all.deb C and C++ standard library reference (English, Devhelp variant)
cppreference-doc-en-qch_20140827+dfsg0-1_all.deb C and C++ standard library reference (English, Qt Help variant)
cpputest_3.4-3_all.deb C/C++ based unit test framework — main package
cpqarrayd_2.3-3_amd64.deb monitoring tool for HP (Compaq) SmartArray controllers
cproto_4.7l-3+deb8u1_amd64.deb utilities to generate C function prototypes from C source code
cpuburn_1.4a-5_amd64.deb Collection of programs to put heavy load on CPU
cpufreqd_2.4.2-2_amd64.deb fully configurable daemon for dynamic frequency and voltage scaling
cpufrequtils_008-1_amd64.deb utilities to deal with the cpufreq Linux kernel feature
cpuid_20140123-2_amd64.deb tool to dump x86 CPUID information about the CPU(s)
cpulimit_2.2-1_amd64.deb tool for limiting the CPU usage of a process
cpuset_1.5.6-4+deb8u1_all.deb Allows manipluation of cpusets and provides higher level fun
cputool_0.0.7-1_amd64.deb Utility which manages CPU usage and system load