summaryrefslogtreecommitdiffstats
path: root/clang/utils/scan-build
diff options
context:
space:
mode:
Diffstat (limited to 'clang/utils/scan-build')
-rwxr-xr-xclang/utils/scan-build8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/utils/scan-build b/clang/utils/scan-build
index 78394b179d5..1e07ae72385 100755
--- a/clang/utils/scan-build
+++ b/clang/utils/scan-build
@@ -902,6 +902,8 @@ print <<ENDTEXT;
OPTIONS:
-analyze-headers - Also analyze functions in #included files.
+
+ --experimental-checks - Enable experimental checks that are currently in heavy testing
-o - Target directory for HTML report files. Subdirectories
will be created as needed to represent separate "runs" of
@@ -1097,6 +1099,12 @@ while (@ARGV) {
next;
}
+ if ($arg = "--experimental-checks") {
+ shift @ARGV;
+ $ENV{"CCC_EXPERIMENTAL_CHECKS"} = 1;
+ next;
+ }
+
if ($arg =~ /^--use-cc(=(.+))?$/) {
shift @ARGV;
my $cc;
OpenPOWER on IntegriCloud