Add scan-build option '-no-failure-reports' to supress the creation of a 'failures' subdirectory that includes crash reports, preprocessed files, etc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77644 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/scan-build b/utils/scan-build
index d766258..acdc4ce 100755
--- a/utils/scan-build
+++ b/utils/scan-build
@@ -959,6 +959,9 @@
the 'basic' store model is used. 'region' specifies a field-
sensitive store model. Be warned that the 'region' model
is still in very early testing phase and may often crash.
+
+ -no-failure-reports - Do not create a 'failures' subdirectory that includes
+ analyzer crash reports and preprocessed source files.
AVAILABLE ANALYSES (multiple analyses may be specified):
@@ -1172,6 +1175,11 @@
$OutputFormat = "plist-html";
next;
}
+
+ if ($arg eq "-no-failure-reports") {
+ $ENV{"CCC_REPORT_FAILURES"} = 0;
+ next;
+ }
DieDiag("unrecognized option '$arg'\n") if ($arg =~ /^-/);