CPPCHECK man page on Ubuntu
Printed from http://www.polarhome.com/service/man/?qf=CPPCHECK&af=0&tf=2&of=Ubuntu
CPPCHECK(1) cppcheck User Manual CPPCHECK(1)
NAME
cppcheck - Simple syntax checking of C/C++.
SYNOPSIS
cppcheck [--all] [--append [file]] [--auto-dealloc [file]]
[--enable=[id]] [--error-exitcode=[n]] [--force] [--help]
[-I[dir]] [-j[jobs]] [--quiet] [--style]
[--suppressions [file]] [--template ['text']]
[--unused-functions] [--verbose] [--version] [--xml]
[file or path] ...
DESCRIPTION
Tool for static C/C++ code analysis intended to complement the checking
of the compiler. Checks for: memory leaks, mismatching
allocation-deallocation, buffer overrun, and many more.
OPTIONS
Analyze given C/C++ files for common errors.
-a, --all
Deprecated, use --enable=possibleError
--append=[file]
This allows you to provide information about functions by providing
an implementation for these.
--auto-dealloc [file]
Suppress warnings about classes that have automatic deallocation
The classnames must be provided in plain text - one classname /
line - in a .lst file.
This option can be given several times, allowing you to provide
several .lst files.
--enable=[id]
Enable specific checks. The available ids are:
all
Enable all checks.
exceptNew
Check exception safety when using new.
exceptRealloc
Check exception safety when reallocating.
possibleError
Make the checking more sensitive. More bugs are detected, but
there are also more false positives.
style
Check coding style.
unusedFunctions
Check for unused functions.
Several ids can be given if you separate them with commas, e.g.
--enable=style,possibleError.
--error-exitcode=[n]
If errors are found, integer [n] is returned instead of default 0.
EXIT_FAILURE is returned if arguments are not valid or if no input
files are provided. Note that your operating system can modify this
value, e.g. 256 can become 0.
-f, --force
Force checking of files that have a lot of configurations. Error is
printed if such a file is found so there is no reason to use this
by default.
-h, --help
Print help text.
-I [dir]
Give include path. Give several -I parameters to give several
paths. First given path is checked first. If paths are relative to
source files, this is not needed.
-j [jobs]
Start [jobs] threads to do the checking work.
-q, --quiet
Only print something when there is an error.
-s, --style
Deprecated, use --enable=style
--suppressions [file]
Suppress warnings listed in the file. Filename and line are
optional. The format of the single line in file is: [error
id]:[filename]:[line]
--template ['text']
Format the error messages. E.g.
'{file}:{line},{severity},{id},{message}' or
'{file}({line}):({severity}) {message}'. Pre-defined templates:
gcc, vs
--unused-functions
Deprecated, use --enable=unusedFunctions
-v, --verbose
More detailed error reports
--version
Print out version information
--xml
Write results in xml to error stream
AUTHOR
The program was written by Bill Egert, Daniel Marjamäki, Gianluca
Scacco, Hoang Tuan Su, Kimmo Varis, Leandro Penz, Nicolas Le Cam, Reijo
Tomperi, Slava Semushin and Vesa Pikki
SEE ALSO
Full list of features: http://cppcheck.wiki.sourceforge.net/
AUTHOR
Reijo Tomperi <aggro80@users.sourceforge.net>
Wrote this manpage for the Debian system.
COPYRIGHT
Copyright © 2009 Reijo Tomperi
This manual page was written for the Debian system (but may be used by
others).
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU General Public License, Version 2 or (at
your option) any later version published by the Free Software
Foundation.
On Debian systems, the complete text of the GNU General Public License
can be found in /usr/share/common-licenses/GPL-2.
cppcheck 02/02/2010 CPPCHECK(1)
[top]
List of man pages available for Ubuntu
Copyright (c) for man pages and the logo by the respective OS vendor.
For those who want to learn more, the polarhome community provides shell access and support.
[legal]
[privacy]
[GNU]
[policy]
[cookies]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
|
Vote for polarhome
|