Skip to content

Commit

Permalink
Merge pull request #4178 from bruntib/cppcheckargs
Browse files Browse the repository at this point in the history
[fix] --cppcheckargs should be present in "CodeChecker check"
  • Loading branch information
Szelethus authored Mar 12, 2024
2 parents 945dfb8 + f838b11 commit 42afcee
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 42afcee

Please sign in to comment.