[PATCH] D66042: [analyzer] Analysis: "Disable" core checkers
Csaba Dabis via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 9 19:48:55 PDT 2019
Charusso added inline comments.
================
Comment at: clang/include/clang/Driver/CC1Options.td:127-128
+def analyzer_disable_warning : Separate<["-"], "analyzer-disable-warning">,
+ HelpText<"Choose analyzer checkers of the warnings to disable">;
+def analyzer_disable_warning_EQ : Joined<["-"], "analyzer-disable-warning=">,
----------------
NoQ wrote:
> How about `-analyzer-silence-checker`?
Cool!
================
Comment at: clang/tools/scan-build/bin/scan-build:1749
+ # to emit a report from the checker so we have to disable the warning.
+ if (index($Checker, "core") != -1) {
+ $Options{DisableWarnings}{$Checker} = $NumArgs;
----------------
NoQ wrote:
> Also some sort of `startswith`.
It is a big trouble since 2017 https://rt.perl.org/Public/Bug/Display.html?id=132301.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D66042/new/
https://reviews.llvm.org/D66042
More information about the cfe-commits
mailing list