-
Notifications
You must be signed in to change notification settings - Fork 383
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
Not allowing disabling modeling checkers in ClangSA #3323
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Github action test cases are failed. I think the problem is that this option is supported properly only by the latest clang. So we should handle this on a version dependent way.
3144cd0
to
79e50ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a typo in the commit message: chekcers
vs checkers
. Please update the commit message.
When a Clang Static Analyzer checker is disabled in CodeChecker, clang is invoked with the "analyzer-disable-checker" flag. This allows the user disabling core modeling checkers such as unix.DynamicMemoryModeling. This causes malfunctioning of depending checkers. Breaking Change: After this patch, modeling and debug checkers (listed with clang -cc1 -analyzer-checker-help-developer) will not be listed and cannot be disabled through CodeChecker with the --enable and --disable flags. They can be enabled/disabled through the Clang Static Analyzer specific --saargs flag only.
Thanks for the review. All comments fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
When a Clang Static Analyzer checker is disabled in CodeChecker, clang is invoked with the
analyzer-disable-checker
flag. This allows the user disabling core modeling checkers such asunix.DynamicMemoryModeling
. This causes malfunctioning of depending checkers.❗ ❗ ❗ Breaking Change: ❗ ❗ ❗
After this patch,
modeling
anddebug
checkers (listed withclang -cc1 -analyzer-checker-help-developer
)will not be listed and cannot be disabled through CodeChecker with the
--enable
and--disable
flags.They can be enabled/disabled through the Clang Static Analyzer specific
--saargs
flag only.