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

[analyzer] Don't run ClangSA checkers from clang-tidy #3417

Merged
merged 1 commit into from
Sep 2, 2021

Conversation

bruntib
Copy link
Contributor

@bruntib bruntib commented Sep 1, 2021

clang-tidy can invoke some ClangSA checkers. We are disabling this
behavior by default, because ClangSA checkers should run through ClangSA
itself. We missed this disable if analyzer config options were given to
clang-tidy. If ClangSA has some bug then it would effect clang-tidy
analysis too. That's the real reason why we force disabling.

@bruntib bruntib added bugfix 🔨 analyzer 📈 Related to the analyze commands (analysis driver) clang-tidy 🐉 clang-tidy is a clang-based C++ “linter” tool. labels Sep 1, 2021
@bruntib bruntib added this to the release 6.17.0 milestone Sep 1, 2021
Copy link
Contributor

@csordasmarton csordasmarton left a comment

Choose a reason for hiding this comment

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

Please add a test case for this change.

@bruntib bruntib force-pushed the no_clangsa_from_tidy branch from 48f3e91 to e9a08e6 Compare September 1, 2021 14:43
@bruntib bruntib force-pushed the no_clangsa_from_tidy branch from e9a08e6 to 245658f Compare September 2, 2021 10:02
@bruntib bruntib force-pushed the no_clangsa_from_tidy branch from 245658f to 903fa72 Compare September 2, 2021 12:50
Copy link
Contributor

@csordasmarton csordasmarton left a comment

Choose a reason for hiding this comment

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

LGTM!

`clang-tidy` can invoke some ClangSA checkers. We are disabling this
behavior by default, because ClangSA checkers should run through ClangSA
itself. We missed this disable if analyzer config options were given to
clang-tidy. If ClangSA has some bug then it would effect clang-tidy
analysis too. That's the real reason why we force disabling.
@bruntib bruntib force-pushed the no_clangsa_from_tidy branch from 903fa72 to a7cab42 Compare September 2, 2021 13:05
@bruntib bruntib merged commit e0c741f into Ericsson:master Sep 2, 2021
@bruntib bruntib deleted the no_clangsa_from_tidy branch September 3, 2021 13:44
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 🔨 clang-tidy 🐉 clang-tidy is a clang-based C++ “linter” tool.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants