Skip to content

Commit

Permalink
[fix] --cppcheckargs should be present in "CodeChecker check"
Browse files Browse the repository at this point in the history
The --cppcheckargs flag is missing from under "CodeChecker check". This
flag has now been added in order to be consistent with "CodeChecker analyze".

Fixes Ericsson#4177
  • Loading branch information
bruntib committed Mar 4, 2024
1 parent f8bc92b commit f838b11
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions analyzer/codechecker_analyzer/cmd/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit f838b11

Please sign in to comment.