]> granicus.if.org Git - clang/commitdiff
scan-build: Don't try to index plist-html output directories
authorDaniel Dunbar <daniel@zuster.org>
Wed, 29 Jul 2009 16:21:23 +0000 (16:21 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 29 Jul 2009 16:21:23 +0000 (16:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77465 91177308-0d34-0410-b5e6-96231b3b80d8

utils/scan-build

index d7b74e34111b9a5cb05e5428d972974e73b59a3a..d766258fdeb442f4a14408beaf1f161a1645687c 100755 (executable)
@@ -1259,7 +1259,11 @@ if (defined $OutputFormat) {
 my $ExitStatus = RunBuildCommand(\@ARGV, $IgnoreErrors, $Cmd);
 
 if (defined $OutputFormat) {
-  if ($OutputFormat =~ /html/) {
+  if ($OutputFormat =~ /plist/) {
+    Diag "Analysis run complete.\n";
+    Diag "Analysis results (plist files) deposited in '$HtmlDir'\n";
+  }
+  elsif ($OutputFormat =~ /html/) {
     # Postprocess the HTML directory.
     my $NumBugs = Postprocess($HtmlDir, $BaseDir);
 
@@ -1276,10 +1280,6 @@ if (defined $OutputFormat) {
       exit 0;
     }
   }
-  elsif ($OutputFormat =~ /plist/) {
-    Diag "Analysis run complete.\n";
-    Diag "Analysis results (plist files) deposited in '$HtmlDir'\n";
-  }
 }
 
 exit $ExitStatus;