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

[fix] Bugfix at --enable-all and disable warning #4080

Merged
merged 2 commits into from
Nov 15, 2023

Conversation

bruntib
Copy link
Contributor

@bruntib bruntib commented Nov 14, 2023

[fix] Bugfix at --enable-all and disable warning

There was a bug in CodeChecker:

CodeChecker analyze --enable-all --disable clang-diagnostic-unused-variable

This command didn't disable that warning. The problem is that we represent --enable-all with -Weverything in the clang-tidy analyzer command, but -Wno-unused-variable has to be appended too. It was a false assumption that
"clang-tidy -checks='-clang-diagnostic-unused-variable' main.c -- -Weverything" does the job.

[fix] Fix non-determinism of clang-diagnostic checker appearances

Earlier we collected the enabled/disabled checkers in a set which
results non-determinism in the appearance of clang-tidy checkers.
Instead of sets we're using lists now.

There was a bug in CodeChecker:

CodeChecker analyze --enable-all --disable clang-diagnostic-unused-variable

This command didn't disable that warning. The problem is that we
represent --enable-all with -Weverything in the clang-tidy analyzer
command, but -Wno-unused-variable has to be appended too. It was a
false assumption that
"clang-tidy -checks='-clang-diagnostic-unused-variable' main.c -- -Weverything"
does the job.
@bruntib bruntib added bugfix 🔨 analyzer 📈 Related to the analyze commands (analysis driver) labels Nov 14, 2023
@bruntib bruntib added this to the release 6.23.0-rc2 milestone Nov 14, 2023
@bruntib bruntib requested a review from vodorok as a code owner November 14, 2023 12:27
Earlier we collected the enabled/disabled checkers in a set which
results non-determinism in the appearance of clang-tidy checkers.
Instead of sets we're using lists now.
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 dkrupp merged commit 91e289d into Ericsson:master Nov 15, 2023
8 checks passed
@bruntib bruntib deleted the enable_all_disable_warning branch November 16, 2023 09:14
@whisperity whisperity modified the milestones: release 6.23.0-rc2, release 6.23.0 Nov 17, 2023
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) bugfix 🔨
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants