[cfe-commits] r71474 - /cfe/trunk/utils/ccc-analyzer
Ted Kremenek
kremenek at apple.com
Mon May 11 14:08:34 PDT 2009
Author: kremenek
Date: Mon May 11 16:08:34 2009
New Revision: 71474
URL: http://llvm.org/viewvc/llvm-project?rev=71474&view=rev
Log:
ccc-analyzer should only analyze C and Objective-C files.
Modified:
cfe/trunk/utils/ccc-analyzer
Modified: cfe/trunk/utils/ccc-analyzer
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/ccc-analyzer?rev=71474&r1=71473&r2=71474&view=diff
==============================================================================
--- cfe/trunk/utils/ccc-analyzer (original)
+++ cfe/trunk/utils/ccc-analyzer Mon May 11 16:08:34 2009
@@ -131,6 +131,7 @@
sub Analyze {
my ($ClangCC, $Args, $Lang, $Output, $Verbose, $HtmlDir, $file, $Analyses) = @_;
+
$Args = GetCCArgs($Args);
# Skip anything related to C++.
@@ -343,6 +344,11 @@
'-isysroot' => 0
);
+my %LangsAccepted = (
+ "objective-c" => 1,
+ "c" => 1
+);
+
##----------------------------------------------------------------------------##
# Main Logic.
##----------------------------------------------------------------------------##
@@ -551,6 +557,7 @@
}
next if (!defined $FileLang);
+ next if (!defined $LangsAccepted{$FileLang});
my @AnalyzeArgs;
More information about the cfe-commits
mailing list