Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement] --cppcheckargs flag was missing #3978

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

bruntib
Copy link
Contributor

@bruntib bruntib commented Aug 14, 2023

Analyzer config options can be forwarded to the analyzers by --saargs and --tidyargs flags. This was missing for Cppcheck, so --cppcheckargs flag has now been introduced.

Fixes #3936

@bruntib bruntib added enhancement 🌟 CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands analyzer 📈 Related to the analyze commands (analysis driver) config ⚙️ cppcheck 🐞 CppCheck is a static analysis tool for C++ code labels Aug 14, 2023
@bruntib bruntib added this to the release 6.23.0 milestone Aug 14, 2023
@bruntib bruntib requested review from Szelethus and cservakt August 14, 2023 10:55
@bruntib bruntib requested review from dkrupp and vodorok as code owners August 14, 2023 10:55
Copy link
Member

@dkrupp dkrupp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dkrupp
Copy link
Member

dkrupp commented Sep 28, 2023

@bruntib please rebase this PR and then we can merge.

Analyzer config options can be forwarded to the analyzers by --saargs
and --tidyargs flags. This was missing for Cppcheck, so --cppcheckargs
flag has now been introduced.

Fixes Ericsson#3936
@dkrupp dkrupp merged commit 72bfd1a into Ericsson:master Oct 11, 2023
8 checks passed
@bruntib bruntib deleted the cppcheckargs branch October 13, 2023 12:51
@@ -225,6 +226,8 @@ def construct_analyzer_cmd(self, result_handler):

analyzer_cmd.append('--plist-output=' + str(output_dir))

analyzer_cmd.extend(config.analyzer_extra_arguments)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this line was already present a few lines up.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, thanks for the comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer 📈 Related to the analyze commands (analysis driver) CLI 💻 Related to the command-line interface, such as the cmd, store, etc. commands config ⚙️ cppcheck 🐞 CppCheck is a static analysis tool for C++ code enhancement 🌟
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CodeChecker: error: unrecognized arguments: --cppcheck-args
3 participants