[cfe-commits] r56431 - /cfe/trunk/utils/scan-build

Ted Kremenek kremenek at apple.com
Sun Sep 21 23:47:02 PDT 2008


Author: kremenek
Date: Mon Sep 22 01:47:01 2008
New Revision: 56431

URL: http://llvm.org/viewvc/llvm-project?rev=56431&view=rev
Log:
Use scan-view to view reports.  Opening index.html is deprecated.

Modified:
    cfe/trunk/utils/scan-build

Modified: cfe/trunk/utils/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/scan-build?rev=56431&r1=56430&r2=56431&view=diff

==============================================================================
--- cfe/trunk/utils/scan-build (original)
+++ cfe/trunk/utils/scan-build Mon Sep 22 01:47:01 2008
@@ -743,7 +743,7 @@
   my $Num = scalar(@Index);
   Diag("$Num bugs found.\n");
   if ($Num > 0 && -r "$Dir/index.html") {
-    Diag("Open '$Dir/index.html' to examine bug reports.\n");
+    Diag("Run 'scan-view $Dir' to examine bug reports.\n");
   }
   
   DiagCrashes($Dir) if ($Crashes);
@@ -1118,9 +1118,11 @@
 my $NumBugs = Postprocess($HtmlDir, $BaseDir);
 
 if ($ViewResults and -r "$HtmlDir/index.html") {
-  # Only works on Mac OS X (for now).
-  print "Viewing analysis results: '$HtmlDir/index.html'\n";
-  system("open", "$HtmlDir/index.html");
+  Diag 'analysis run complete.\n';
+  Diag "Viewing analysis results in '$HtmlDir' using scan-view.\n";
+  my $ScanView = "$RealBin/scan-view";
+  if (! -x $ScanView) { $ScanView = "scan-view"; }
+  exec $ScanView, "$HtmlDir";
 }
 
 if ($ExitStatusFoundBugs) {





More information about the cfe-commits mailing list