From 839cee45a67bbb7716140c27641018a0cc019735 Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Mon, 30 Nov 2009 22:42:24 +0200 Subject: [PATCH] Update man page --- man/cppcheck.1.xml | 55 +++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 50 insertions(+), 5 deletions(-) diff --git a/man/cppcheck.1.xml b/man/cppcheck.1.xml index b7f76f0f4..370c10b34 100644 --- a/man/cppcheck.1.xml +++ b/man/cppcheck.1.xml @@ -116,6 +116,7 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ + @@ -125,7 +126,7 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ DESCRIPTION - A tool for static C/C++ code analysis + 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. @@ -141,8 +142,7 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ - Normally a message is only shown if cppcheck is sure it has - found a bug. When this option is given, all messages are shown. + deprecated, use --enable=possibleError @@ -168,7 +168,46 @@ man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ - Enable check with given id(s). The id can be exceptNew, exceptRealloc or unusedFunctions. Multiple ids separated by comma can be given. + Enable specific checks. The available ids are: + + exceptNew + + + exception safety when using new + + + + exceptRealloc + + + exceptRealloc - exception safety when reallocating + + + + possibleError + + + exceptRealloc - Make the checking more sensitive. More bugs are detected, + but there are also more false positives. + + + + style + + + exceptRealloc - Check coding style + + + + unusedFunctions + + + check for unused functions + + + + + Several ids can be given if you separate them with commas @@ -219,7 +258,7 @@ files, this is not needed. - Check coding style. + deprecated, use --enable=style @@ -234,6 +273,12 @@ files, this is not needed. Format the error messages. E.g. '{file}:{line},{severity},{id},{message}' or '{file}({line}):({severity}) {message}'. Pre-defined templates: gcc, vs + + + + deprecated, use --enable=unusedFunctions + +