From f838b1104ddbdfe55d0b3e7cc84d75b1ea318628 Mon Sep 17 00:00:00 2001 From: bruntib Date: Mon, 4 Mar 2024 10:25:42 +0100 Subject: [PATCH] [fix] --cppcheckargs should be present in "CodeChecker check" The --cppcheckargs flag is missing from under "CodeChecker check". This flag has now been added in order to be consistent with "CodeChecker analyze". Fixes #4177 --- analyzer/codechecker_analyzer/cmd/check.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/analyzer/codechecker_analyzer/cmd/check.py b/analyzer/codechecker_analyzer/cmd/check.py index a10b111afe..abbb7add6d 100644 --- a/analyzer/codechecker_analyzer/cmd/check.py +++ b/analyzer/codechecker_analyzer/cmd/check.py @@ -327,6 +327,13 @@ def add_arguments_to_parser(parser): cmd_config.add_option(analyzer_opts) # TODO: One day, get rid of these. See Issue #36, #427. + analyzer_opts.add_argument('--cppcheckargs', + dest="cppcheck_args_cfg_file", + required=False, + default=argparse.SUPPRESS, + help="File containing argument which will be " + "forwarded verbatim for Cppcheck.") + analyzer_opts.add_argument('--saargs', dest="clangsa_args_cfg_file", required=False, @@ -866,6 +873,7 @@ def __update_if_key_exists(source, target, key): 'files', 'analyzers', 'add_compiler_defaults', + 'cppcheck_args_cfg_file', 'clangsa_args_cfg_file', 'tidy_args_cfg_file', 'analyzer_config',