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

[NFC] Eliminate the "W" form of clang-tidy warnings #4438

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bruntib
Copy link
Contributor

@bruntib bruntib commented Jan 27, 2025

Earlier "clang-diagnostic-..." checkers could have been provided with their original "W" warning flag form. For example Wformat vs. clang-diagnostic-format. The "W" form is deprecated for a while and the late CodeChecker versions emit a hard error when using them. For this reason there is no need to distinguish "W" form as a warning anymore.

@bruntib bruntib added refactoring 😡 ➡️ 🙂 Refactoring code. clang-tidy 🐉 clang-tidy is a clang-based C++ “linter” tool. labels Jan 27, 2025
@bruntib bruntib added this to the release 6.26.0 milestone Jan 27, 2025
@bruntib bruntib requested a review from cservakt January 27, 2025 10:14
@bruntib bruntib requested a review from vodorok as a code owner January 27, 2025 10:14
Comment on lines 251 to 256
__warning_blacklist = {
# It is a parameterized checker and there is no infrastructure to
# provide a parameter for a checker.
'frame-larger-than',
'frame-larger-than='
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am not sure it is the best way to list these blacklisted warnings. Can we add a prop to labels that is a status of the backlist?

Earlier "clang-diagnostic-..." checkers could have been provided with
their original "W" warning flag form. For example Wformat vs.
clang-diagnostic-format. The "W" form is deprecated for a while and the
late CodeChecker versions emit a hard error when using them.
For this reason there is no need to distinguish "W" form as a warning
anymore.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang-tidy 🐉 clang-tidy is a clang-based C++ “linter” tool. refactoring 😡 ➡️ 🙂 Refactoring code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants