Skip to content
Sections
>> Trisquel >> 软件包 >> aramo >> devel >> cppcheck
etiona  ] [  nabia  ] [  aramo  ]
[ 源代码: cppcheck  ]

软件包: cppcheck (2.7-1)

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.

其他与 cppcheck 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: libc6 (>= 2.34)
    GNU C Library: Shared libraries
    同时作为一个虚包由这些包填实: libc6-udeb
  • dep: libgcc-s1 (>= 3.3.1) [amd64]
    GCC support library
    dep: libgcc-s1 (>= 3.5) [armhf]
    dep: libgcc-s1 (>= 4.2) [arm64, ppc64el]
  • dep: libpcre3
    Old Perl 5 Compatible Regular Expression Library - runtime files
  • dep: libstdc++6 (>= 11)
    GNU Standard C++ Library v3
  • dep: libtinyxml2-9 (>= 8.0.0)
    C++ XML parsing library
  • dep: libz3-4 (>= 4.8.12)
    theorem prover from Microsoft Research - runtime libraries
  • dep: python3
    interactive high-level object-oriented language (default python3 version)
  • dep: python3-pygments
    syntax highlighting package written in Python 3
  • sug: clang
    C, C++ and Objective-C compiler (LLVM based), clang binary
  • sug: clang-tidy
    clang-based C++ linter tool
  • sug: cppcheck-gui
    tool for static C/C++ code analysis (GUI)

下载 cppcheck

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
amd64 1,968.9 kB8906 kB [文件列表]
arm64 1,871.3 kB8446 kB [文件列表]
armhf 1,956.8 kB7713 kB [文件列表]
ppc64el 2,052.3 kB9602 kB [文件列表]