From 63aa2fbed02dc0ba7ebc1379d003252be177f59c Mon Sep 17 00:00:00 2001 From: PKEuS Date: Fri, 29 Jul 2016 10:50:37 +0200 Subject: [PATCH] --append is deprecated now and will be removed in cppcheck 1.80. --- cli/cmdlineparser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cli/cmdlineparser.cpp b/cli/cmdlineparser.cpp index e98eb737c..e5a29907e 100644 --- a/cli/cmdlineparser.cpp +++ b/cli/cmdlineparser.cpp @@ -291,6 +291,9 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[]) // Append user-defined code to checked source code else if (std::strncmp(argv[i], "--append=", 9) == 0) { + // This is deprecated and will be removed in 1.80 + PrintMessage("cppcheck: '--append' is deprecated and will be removed in version 1.80. To supply additional information to cppcheck, use --library or --include."); + const std::string filename = 9 + argv[i]; if (!_settings->append(filename)) { PrintMessage("cppcheck: Couldn't open the file: \"" + filename + "\"."); @@ -781,8 +784,6 @@ void CmdLineParser::PrintHelp() "If a directory is given instead of a filename, *.cpp, *.cxx, *.cc, *.c++, *.c,\n" "*.tpp, and *.txx files are checked recursively from the given directory.\n\n" "Options:\n" - " --append= This allows you to provide information about functions\n" - " by providing an implementation for them.\n" " --check-config Check cppcheck configuration. The normal code\n" " analysis is disabled by this flag.\n" " --check-library Show information messages when library files have\n"