| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 1 | #!/usr/bin/env perl | 
| Ted Kremenek | 5efdf84 | 2008-03-25 22:35:32 +0000 | [diff] [blame] | 2 | # | 
|  | 3 | #                     The LLVM Compiler Infrastructure | 
|  | 4 | # | 
|  | 5 | # This file is distributed under the University of Illinois Open Source | 
|  | 6 | # License. See LICENSE.TXT for details. | 
|  | 7 | # | 
|  | 8 | ##===----------------------------------------------------------------------===## | 
|  | 9 | # | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 10 | #  A script designed to interpose between the build system and gcc.  It invokes | 
|  | 11 | #  both gcc and the static analyzer. | 
| Ted Kremenek | 5efdf84 | 2008-03-25 22:35:32 +0000 | [diff] [blame] | 12 | # | 
|  | 13 | ##===----------------------------------------------------------------------===## | 
|  | 14 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 15 | use strict; | 
|  | 16 | use warnings; | 
|  | 17 | use Cwd; | 
| Ted Kremenek | 994c8e3 | 2008-08-08 20:46:42 +0000 | [diff] [blame] | 18 | use File::Temp qw/ tempfile /; | 
|  | 19 | use File::Path qw / mkpath /; | 
| Ted Kremenek | 6aa1ad0 | 2008-08-25 20:44:31 +0000 | [diff] [blame^] | 20 |  | 
|  | 21 | my $CC = $ENV{'CCC_CC'}; | 
|  | 22 | if (!defined $CC) { $CC = "gcc"; } | 
| Ted Kremenek | 994c8e3 | 2008-08-08 20:46:42 +0000 | [diff] [blame] | 23 |  | 
|  | 24 | ##----------------------------------------------------------------------------## | 
|  | 25 | #  Process Clang Crashes. | 
|  | 26 | ##----------------------------------------------------------------------------## | 
|  | 27 |  | 
|  | 28 | sub GetPPExt { | 
|  | 29 | my $Lang = shift; | 
|  | 30 | if ($Lang =~ /objective-c/) { return ".mi"; } | 
|  | 31 | return ".i"; | 
|  | 32 | } | 
|  | 33 |  | 
| Ted Kremenek | 5abf546 | 2008-08-18 18:38:29 +0000 | [diff] [blame] | 34 | sub ProcessClangFailure { | 
|  | 35 | my ($Lang, $file, $Args, $HtmlDir, $ErrorType) = @_; | 
| Ted Kremenek | 994c8e3 | 2008-08-08 20:46:42 +0000 | [diff] [blame] | 36 | my $Dir = "$HtmlDir/crashes"; | 
|  | 37 | mkpath $Dir; | 
|  | 38 | my ($PPH, $PPFile) = tempfile("clang_crash_XXXXXX", | 
|  | 39 | SUFFIX => GetPPExt($Lang), | 
|  | 40 | DIR => $Dir); | 
|  | 41 |  | 
| Ted Kremenek | 6aa1ad0 | 2008-08-25 20:44:31 +0000 | [diff] [blame^] | 42 | system $CC, @$Args, "-E", "-o", $PPFile; | 
| Ted Kremenek | 994c8e3 | 2008-08-08 20:46:42 +0000 | [diff] [blame] | 43 | close ($PPH); | 
|  | 44 | open (OUT, ">", "$PPFile.info") or die "Cannot open $PPFile.info\n"; | 
| Ted Kremenek | 5abf546 | 2008-08-18 18:38:29 +0000 | [diff] [blame] | 45 | print OUT "$file\n"; | 
|  | 46 | print OUT "$ErrorType\n"; | 
| Ted Kremenek | b3c98d3 | 2008-08-18 20:55:25 +0000 | [diff] [blame] | 47 | print OUT "@$Args\n"; | 
| Ted Kremenek | 994c8e3 | 2008-08-08 20:46:42 +0000 | [diff] [blame] | 48 | close OUT; | 
|  | 49 | } | 
| Ted Kremenek | 5efdf84 | 2008-03-25 22:35:32 +0000 | [diff] [blame] | 50 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 51 | ##----------------------------------------------------------------------------## | 
|  | 52 | #  Running the analyzer. | 
|  | 53 | ##----------------------------------------------------------------------------## | 
| Ted Kremenek | 5efdf84 | 2008-03-25 22:35:32 +0000 | [diff] [blame] | 54 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 55 | sub Analyze { | 
|  | 56 | my ($Clang, $Args, $Lang, $Output, $Verbose, $HtmlDir, $file, $Analyses) = @_; | 
| Seo Sanghyeon | b7bf0f3 | 2008-04-04 11:02:21 +0000 | [diff] [blame] | 57 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 58 | # Skip anything related to C++. | 
|  | 59 | return if ($Lang =~ /c[+][+]/); | 
| Ted Kremenek | 5abf546 | 2008-08-18 18:38:29 +0000 | [diff] [blame] | 60 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 61 | my $RunAnalyzer = 0; | 
|  | 62 | my $Cmd; | 
|  | 63 | my @CmdArgs; | 
| Ted Kremenek | 994c8e3 | 2008-08-08 20:46:42 +0000 | [diff] [blame] | 64 | my @CmdArgsSansAnalyses; | 
| Ted Kremenek | f18f460 | 2008-05-24 15:58:54 +0000 | [diff] [blame] | 65 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 66 | if ($Lang =~ /header/) { | 
|  | 67 | exit 0 if (!defined ($Output)); | 
|  | 68 | $Cmd = 'cp'; | 
|  | 69 | push @CmdArgs,$file; | 
|  | 70 | # Remove the PCH extension. | 
|  | 71 | $Output =~ s/[.]gch$//; | 
|  | 72 | push @CmdArgs,$Output; | 
| Ted Kremenek | 994c8e3 | 2008-08-08 20:46:42 +0000 | [diff] [blame] | 73 | @CmdArgsSansAnalyses = @CmdArgs; | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 74 | } | 
|  | 75 | else { | 
|  | 76 | $Cmd = $Clang; | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 77 | push @CmdArgs,'-DIBOutlet=__attribute__((iboutlet))'; | 
|  | 78 | push @CmdArgs,@$Args; | 
| Ted Kremenek | 994c8e3 | 2008-08-08 20:46:42 +0000 | [diff] [blame] | 79 | @CmdArgsSansAnalyses = @CmdArgs; | 
|  | 80 | push @CmdArgs,(split /\s/,$Analyses); | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 81 | $RunAnalyzer = 1; | 
|  | 82 | } | 
|  | 83 |  | 
|  | 84 | my @PrintArgs; | 
|  | 85 | my $dir; | 
|  | 86 |  | 
|  | 87 | if ($Verbose) { | 
|  | 88 | $dir = getcwd(); | 
|  | 89 | print STDERR "\n[LOCATION]: $dir\n"; | 
|  | 90 | push @PrintArgs,"'$Cmd'"; | 
|  | 91 | foreach my $arg (@CmdArgs) { push @PrintArgs,"\'$arg\'"; } | 
|  | 92 | } | 
|  | 93 |  | 
|  | 94 | if ($Verbose == 1) { | 
| Ted Kremenek | f18f460 | 2008-05-24 15:58:54 +0000 | [diff] [blame] | 95 | # We MUST print to stderr.  Some clients use the stdout output of | 
|  | 96 | # gcc for various purposes. | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 97 | print STDERR join(' ',@PrintArgs); | 
|  | 98 | print STDERR "\n"; | 
|  | 99 | } | 
|  | 100 | elsif ($Verbose == 2) { | 
|  | 101 | print STDERR "#SHELL (cd '$dir' && @PrintArgs)\n"; | 
|  | 102 | } | 
| Ted Kremenek | f18f460 | 2008-05-24 15:58:54 +0000 | [diff] [blame] | 103 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 104 | if ($RunAnalyzer and defined($HtmlDir)) { | 
|  | 105 | push @CmdArgs,'-o'; | 
|  | 106 | push @CmdArgs,$HtmlDir; | 
|  | 107 | } | 
| Ted Kremenek | 994c8e3 | 2008-08-08 20:46:42 +0000 | [diff] [blame] | 108 |  | 
|  | 109 | system $Cmd,@CmdArgs; | 
|  | 110 |  | 
|  | 111 | # Did the command die because of a signal? | 
|  | 112 | if ($? & 127 and $Cmd eq $Clang and defined $HtmlDir) { | 
| Ted Kremenek | 5abf546 | 2008-08-18 18:38:29 +0000 | [diff] [blame] | 113 | ProcessClangFailure($Lang, $file, \@CmdArgsSansAnalyses, $HtmlDir, | 
|  | 114 | "Crash"); | 
|  | 115 | } | 
|  | 116 | elsif ($?) { | 
|  | 117 | ProcessClangFailure($Lang, $file, \@CmdArgsSansAnalyses, $HtmlDir, | 
|  | 118 | "Parser Rejects"); | 
| Ted Kremenek | 994c8e3 | 2008-08-08 20:46:42 +0000 | [diff] [blame] | 119 | } | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 120 | } | 
| Ted Kremenek | f18f460 | 2008-05-24 15:58:54 +0000 | [diff] [blame] | 121 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 122 | ##----------------------------------------------------------------------------## | 
|  | 123 | #  Lookup tables. | 
|  | 124 | ##----------------------------------------------------------------------------## | 
|  | 125 |  | 
|  | 126 | my %CompileOptionMap = ( | 
|  | 127 | '-nostdinc' => 0, | 
|  | 128 | '-fobjc-gc-only' => 0, | 
|  | 129 | '-fobjc-gc' => 0, | 
|  | 130 | '-include' => 1, | 
|  | 131 | '-idirafter' => 1, | 
|  | 132 | '-iprefix' => 1, | 
|  | 133 | '-iquote' => 1, | 
|  | 134 | '-isystem' => 1, | 
|  | 135 | '-iwithprefix' => 1, | 
|  | 136 | '-iwithprefixbefore' => 1 | 
|  | 137 | ); | 
|  | 138 |  | 
|  | 139 | my %LinkerOptionMap = ( | 
|  | 140 | '-framework' => 1 | 
|  | 141 | ); | 
|  | 142 |  | 
|  | 143 | my %CompilerLinkerOptionMap = ( | 
|  | 144 | '-isysroot' => 1, | 
|  | 145 | '-arch' => 1, | 
|  | 146 | '-v' => 0 | 
|  | 147 | ); | 
|  | 148 |  | 
|  | 149 | my %IgnoredOptionMap = ( | 
| Ted Kremenek | 4a154b2 | 2008-07-24 03:52:21 +0000 | [diff] [blame] | 150 | '-MT' => 1,  # Ignore these preprocessor options. | 
|  | 151 | '-MF' => 1, | 
|  | 152 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 153 | '-fsyntax-only' => 0, | 
|  | 154 | '-save-temps' => 0, | 
|  | 155 | '-install_name' => 1, | 
|  | 156 | '-exported_symbols_list' => 1, | 
|  | 157 | '-current_version' => 1, | 
|  | 158 | '-compatibility_version' => 1, | 
|  | 159 | '-init' => 1, | 
|  | 160 | '-e' => 1, | 
|  | 161 | '-seg1addr' => 1, | 
|  | 162 | '-bundle_loader' => 1, | 
|  | 163 | '-multiply_defined' => 1, | 
|  | 164 | '-sectorder' => 3, | 
|  | 165 | '--param' => 1, | 
|  | 166 | '-u' => 1 | 
|  | 167 | ); | 
|  | 168 |  | 
|  | 169 | my %LangMap = ( | 
|  | 170 | 'c'   => 'c', | 
|  | 171 | 'cpp' => 'c++', | 
|  | 172 | 'cc'  => 'c++', | 
|  | 173 | 'i'   => 'c-cpp-output', | 
|  | 174 | 'm'   => 'objective-c', | 
|  | 175 | 'mi'  => 'objective-c-cpp-output' | 
|  | 176 | ); | 
|  | 177 |  | 
|  | 178 | ##----------------------------------------------------------------------------## | 
|  | 179 | #  Main Logic. | 
|  | 180 | ##----------------------------------------------------------------------------## | 
|  | 181 |  | 
|  | 182 | my $Action = 'link'; | 
|  | 183 | my @CompileOpts; | 
|  | 184 | my @LinkOpts; | 
|  | 185 | my @Files; | 
|  | 186 | my $Lang; | 
|  | 187 | my $Output; | 
|  | 188 |  | 
|  | 189 | # Forward arguments to gcc. | 
| Ted Kremenek | b57efcc | 2008-08-21 21:47:09 +0000 | [diff] [blame] | 190 | my $Status = system($CC,@ARGV); | 
| Ted Kremenek | a3b3c86 | 2008-08-25 20:10:45 +0000 | [diff] [blame] | 191 | if ($Status) { exit($Status >> 8); } | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 192 |  | 
|  | 193 | # Get the analysis options. | 
|  | 194 | my $Analyses = $ENV{'CCC_ANALYZER_ANALYSIS'}; | 
|  | 195 | if (!defined($Analyses)) { $Analyses = '-checker-cfref'; } | 
|  | 196 |  | 
|  | 197 | # Determine the level of verbosity. | 
|  | 198 | my $Verbose = 0; | 
|  | 199 | if (defined $ENV{CCC_ANALYZER_VERBOSE}) { $Verbose = 1; } | 
|  | 200 | if (defined $ENV{CCC_ANALYZER_LOG}) { $Verbose = 2; } | 
|  | 201 |  | 
|  | 202 | # Determine what clang executable to use. | 
|  | 203 | my $Clang = $ENV{'CLANG'}; | 
|  | 204 | if (!defined $Clang) { $Clang = 'clang'; } | 
|  | 205 |  | 
|  | 206 | # Get the HTML output directory. | 
|  | 207 | my $HtmlDir = $ENV{'CCC_ANALYZER_HTML'}; | 
|  | 208 |  | 
|  | 209 |  | 
|  | 210 | # Process the arguments. | 
|  | 211 | foreach (my $i = 0; $i < scalar(@ARGV); ++$i) { | 
|  | 212 | my $Arg = $ARGV[$i]; | 
|  | 213 |  | 
|  | 214 | # Modes ccc-analyzer supports | 
|  | 215 | if ($Arg eq '-E') { $Action = 'preprocess'; } | 
|  | 216 | elsif ($Arg eq '-c') { $Action = 'compile'; } | 
|  | 217 | elsif ($Arg =~ /^-print-prog-name/) { exit 0; } | 
| Ted Kremenek | 5efdf84 | 2008-03-25 22:35:32 +0000 | [diff] [blame] | 218 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 219 | # Options with possible arguments that should pass through to compiler. | 
|  | 220 | if (defined $CompileOptionMap{$Arg}) { | 
|  | 221 | my $Cnt = $CompileOptionMap{$Arg}; | 
|  | 222 | push @CompileOpts,$Arg; | 
|  | 223 | while ($Cnt > 0) { ++$i; --$Cnt; push @CompileOpts, $ARGV[$i]; } | 
|  | 224 | next; | 
|  | 225 | } | 
|  | 226 |  | 
|  | 227 | # Options with possible arguments that should pass through to linker. | 
|  | 228 | if (defined $LinkerOptionMap{$Arg}) { | 
|  | 229 | my $Cnt = $LinkerOptionMap{$Arg}; | 
|  | 230 | push @LinkOpts,$Arg; | 
|  | 231 | while ($Cnt > 0) { ++$i; --$Cnt; push @LinkOpts, $ARGV[$i]; } | 
|  | 232 | next; | 
|  | 233 | } | 
|  | 234 |  | 
|  | 235 | # Options with possible arguments that should pass through to both compiler | 
|  | 236 | # and the linker. | 
|  | 237 | if (defined $CompilerLinkerOptionMap{$Arg}) { | 
|  | 238 | my $Cnt = $CompilerLinkerOptionMap{$Arg}; | 
|  | 239 | push @CompileOpts,$Arg; | 
|  | 240 | push @LinkOpts,$Arg; | 
|  | 241 | while ($Cnt > 0) { | 
|  | 242 | ++$i; --$Cnt; | 
|  | 243 | push @CompileOpts, $ARGV[$i]; | 
|  | 244 | push @LinkOpts, $ARGV[$i]; | 
|  | 245 | } | 
|  | 246 | next; | 
|  | 247 | } | 
| Ted Kremenek | f18f460 | 2008-05-24 15:58:54 +0000 | [diff] [blame] | 248 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 249 | # Ignored options. | 
|  | 250 | if (defined $IgnoredOptionMap{$Arg}) { | 
|  | 251 | my $Cnt = $IgnoredOptionMap{$Arg}; | 
|  | 252 | while ($Cnt > 0) { | 
|  | 253 | ++$i; --$Cnt; | 
|  | 254 | } | 
|  | 255 | next; | 
|  | 256 | } | 
| Ted Kremenek | f18f460 | 2008-05-24 15:58:54 +0000 | [diff] [blame] | 257 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 258 | # Compile mode flags. | 
|  | 259 | if ($Arg =~ /^-[D,I,U](.*)$/) { | 
|  | 260 | my $Tmp = $Arg; | 
|  | 261 | if ($1 eq '') { | 
|  | 262 | # FIXME: Check if we are going off the end. | 
|  | 263 | ++$i; | 
|  | 264 | $Tmp = $Arg . $ARGV[$i]; | 
|  | 265 | } | 
|  | 266 | push @CompileOpts,$Tmp; | 
|  | 267 | next; | 
|  | 268 | } | 
|  | 269 |  | 
|  | 270 | # Language. | 
|  | 271 | if ($Arg eq '-x') { | 
|  | 272 | $Lang = $ARGV[$i+1]; | 
|  | 273 | ++$i; next; | 
|  | 274 | } | 
| Ted Kremenek | f18f460 | 2008-05-24 15:58:54 +0000 | [diff] [blame] | 275 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 276 | # Output file. | 
|  | 277 | if ($Arg eq '-o') { | 
|  | 278 | ++$i; | 
|  | 279 | $Output = $ARGV[$i]; | 
|  | 280 | next; | 
|  | 281 | } | 
|  | 282 |  | 
|  | 283 | # Get the link mode. | 
|  | 284 | if ($Arg =~ /^-[l,L,O]/) { | 
|  | 285 | if ($Arg eq '-O') { push @LinkOpts,'-O1'; } | 
|  | 286 | elsif ($Arg eq '-Os') { push @LinkOpts,'-O2'; } | 
|  | 287 | else { push @LinkOpts,$Arg; } | 
|  | 288 | next; | 
|  | 289 | } | 
|  | 290 |  | 
|  | 291 | if ($Arg =~ /^-std=/) { | 
|  | 292 | push @CompileOpts,$Arg; | 
|  | 293 | next; | 
|  | 294 | } | 
|  | 295 |  | 
|  | 296 | #  if ($Arg =~ /^-f/) { | 
|  | 297 | #    # FIXME: Not sure if the remaining -fxxxx options have no arguments. | 
|  | 298 | #    push @CompileOpts,$Arg; | 
|  | 299 | #    push @LinkOpts,$Arg;  # FIXME: Not sure if these are link opts. | 
|  | 300 | #  } | 
|  | 301 |  | 
|  | 302 | # Get the compiler/link mode. | 
|  | 303 | if ($Arg =~ /^-F(.+)$/) { | 
|  | 304 | my $Tmp = $Arg; | 
|  | 305 | if ($1 eq '') { | 
|  | 306 | # FIXME: Check if we are going off the end. | 
|  | 307 | ++$i; | 
|  | 308 | $Tmp = $Arg . $ARGV[$i]; | 
|  | 309 | } | 
|  | 310 | push @CompileOpts,$Tmp; | 
|  | 311 | push @LinkOpts,$Tmp; | 
|  | 312 | next; | 
|  | 313 | } | 
| Ted Kremenek | f18f460 | 2008-05-24 15:58:54 +0000 | [diff] [blame] | 314 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 315 | # Input files. | 
|  | 316 | if ($Arg eq '-filelist') { | 
|  | 317 | # FIXME: Make sure we aren't walking off the end. | 
|  | 318 | open(IN, $ARGV[$i+1]); | 
|  | 319 | while (<IN>) { s/\015?\012//; push @Files,$_; } | 
|  | 320 | close(IN); | 
|  | 321 | ++$i; next; | 
|  | 322 | } | 
|  | 323 |  | 
|  | 324 | if (!($Arg =~ /^-/)) { | 
|  | 325 | push @Files,$Arg; next; | 
|  | 326 | } | 
| Ted Kremenek | a3b3c86 | 2008-08-25 20:10:45 +0000 | [diff] [blame] | 327 |  | 
|  | 328 | exit 0; | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 329 | } | 
| Ted Kremenek | f18f460 | 2008-05-24 15:58:54 +0000 | [diff] [blame] | 330 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 331 | if ($Action eq 'compile' or $Action eq 'link') { | 
|  | 332 | foreach my $file (@Files) { | 
|  | 333 | # Determine the language for the file. | 
|  | 334 | my $FileLang = $Lang; | 
|  | 335 |  | 
|  | 336 | if (!defined($FileLang)) { | 
|  | 337 | # Infer the language from the extension. | 
|  | 338 | if ($file =~ /[.]([^.]+)$/) { | 
|  | 339 | $FileLang = $LangMap{$1}; | 
|  | 340 | } | 
|  | 341 | } | 
| Ted Kremenek | e3fc13a | 2008-05-14 20:10:33 +0000 | [diff] [blame] | 342 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 343 | next if (!defined $FileLang); | 
|  | 344 |  | 
|  | 345 | my @AnalyzeArgs; | 
|  | 346 |  | 
|  | 347 | if ($FileLang ne 'unknown') { | 
|  | 348 | push @AnalyzeArgs,'-x'; | 
|  | 349 | push @AnalyzeArgs,$FileLang; | 
|  | 350 | } | 
| Ted Kremenek | 5efdf84 | 2008-03-25 22:35:32 +0000 | [diff] [blame] | 351 |  | 
| Ted Kremenek | f7ffd66 | 2008-07-19 06:11:04 +0000 | [diff] [blame] | 352 | push @AnalyzeArgs,@CompileOpts; | 
|  | 353 | push @AnalyzeArgs,$file; | 
|  | 354 |  | 
|  | 355 | Analyze($Clang, \@AnalyzeArgs, $FileLang, $Output, | 
|  | 356 | $Verbose, $HtmlDir, $file, $Analyses); | 
|  | 357 | } | 
|  | 358 | } | 
| Ted Kremenek | 5efdf84 | 2008-03-25 22:35:32 +0000 | [diff] [blame] | 359 |  |