aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutils/ccc-analyzer5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/ccc-analyzer b/utils/ccc-analyzer
index 5ca834a7b2..28e4ad182b 100755
--- a/utils/ccc-analyzer
+++ b/utils/ccc-analyzer
@@ -41,7 +41,10 @@ sub GetPPExt {
return ".i";
}
+# Set this to 1 if we want to include 'parser rejects' files.
+my $IncludeParserRejects = 0;
my $ParserRejects = "Parser Rejects";
+
my $AttributeIgnored = "Attribute Ignored";
sub ProcessClangFailure {
@@ -184,7 +187,7 @@ sub Analyze {
"Crash", $ofile);
}
elsif ($Result) {
- if (!($file =~/conftest/)) {
+ if ($IncludeParserRejects && !($file =~/conftest/)) {
ProcessClangFailure($Clang, $Lang, $file, \@CmdArgsSansAnalyses, $HtmlDir,
$ParserRejects, $ofile);
}