diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-09-22 06:47:01 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-09-22 06:47:01 +0000 |
| commit | a3fe93b6881010ce763922aad554f6d7dc909e2e (patch) | |
| tree | 970e80e61f1f9a1c1d54ac7ec10eeb9b7854dc24 /clang | |
| parent | dd186c638ea554ce96dc865106927220289477f2 (diff) | |
| download | bcm5719-llvm-a3fe93b6881010ce763922aad554f6d7dc909e2e.tar.gz bcm5719-llvm-a3fe93b6881010ce763922aad554f6d7dc909e2e.zip | |
Use scan-view to view reports. Opening index.html is deprecated.
llvm-svn: 56431
Diffstat (limited to 'clang')
| -rwxr-xr-x | clang/utils/scan-build | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/clang/utils/scan-build b/clang/utils/scan-build index f48b71d57cb..4105c37cf36 100755 --- a/clang/utils/scan-build +++ b/clang/utils/scan-build @@ -743,7 +743,7 @@ ENDTEXT 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 $ExitStatus = RunBuildCommand(\@ARGV, $IgnoreErrors, $Cmd); 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) { |

