aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-04-28 17:37:44 +0000
committerTed Kremenek <kremenek@apple.com>2009-04-28 17:37:44 +0000
commita4d8cde6584aa6c1aee241faf671eb4bac93defb (patch)
treeb708c8e3535d8bd10b98d6b5f0348af8951973a5 /utils
parentd8ca410832a786709591c31853eb8d7ddc421cb3 (diff)
ccc-analyzer: Don't automatically generate 'Parser Rejects' files anymore. The
frontend is far enough along that most discrepancies between Clang and GCC are (at least for C and Objective-C) are intentional. We also now have codegen to test the frontend. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-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);
}