From 96ba41b009648e5d6b79e2a38b62222f5e10c0c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 10 Apr 2010 15:05:59 +0200 Subject: [PATCH] Cppcheck Help: Removed information about --auto-dealloc because it is not relevant at the moment. --- lib/cppcheck.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 1b67af53d..73c00662c 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -370,7 +370,7 @@ void CppCheck::parseFromArgs(int argc, const char* const argv[]) oss << "Cppcheck - A tool for static C/C++ code analysis\n" "\n" "Syntax:\n" - " cppcheck [--append=file] [--auto-dealloc file.lst] [--enable]\n" + " cppcheck [--append=file] [--enable=]\n" " [--error-exitcode=[n]] [--exitcode-suppressions file] [--force]\n" " [--help] [-Idir] [-j [jobs]] [--quiet] [--style]\n" " [--suppressions file.txt] [--inline-suppr] [--file-list=file.txt]\n" @@ -381,12 +381,6 @@ void CppCheck::parseFromArgs(int argc, const char* const argv[]) "Options:\n" " --append=file This allows you to provide information about\n" " functions by providing an implementation for these.\n" - " --auto-dealloc file Suppress warnings about classes that have automatic\n" - " deallocation.\n" - " The classnames must be provided in plain text - one\n" - " classname / line - in a .lst file.\n" - " This option can be used several times, allowing you to\n" - " specify several .lst files.\n" " --enable=id Enable specific checks. The available ids are:\n" " * all - enable all checks\n" " * exceptNew - exception safety when using new\n" @@ -431,10 +425,10 @@ void CppCheck::parseFromArgs(int argc, const char* const argv[]) " # Recursively check the current folder. Print the progress on the screen and\n" " write errors in a file:\n" " cppcheck . 2> err.txt\n" - " # Recursively check ../myproject/ and print only most fatal errors:\n" + " # Recursively check ../myproject/ and don't print progress:\n" " cppcheck --quiet ../myproject/\n" " # Check only files one.cpp and two.cpp and give all information there is:\n" - " cppcheck -v -a -s one.cpp two.cpp\n" + " cppcheck -v -s one.cpp two.cpp\n" " # Check f.cpp and search include files from inc1/ and inc2/:\n" " cppcheck -I inc1/ -I inc2/ f.cpp\n"; reportOut(oss.str());