summaryrefslogtreecommitdiffstats
path: root/clang/tools/scan-build
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2014-05-16 07:03:15 +0000
committerSylvestre Ledru <sylvestre@debian.org>2014-05-16 07:03:15 +0000
commit3cbaa468c27573149b5442086005a19c69b398a3 (patch)
tree50c6f7a4657dcac9eaed11aadf1f1ad52f330394 /clang/tools/scan-build
parentda2c2ce6cec8a2bce60d0c3d59fb29aa7e547d08 (diff)
downloadbcm5719-llvm-3cbaa468c27573149b5442086005a19c69b398a3.tar.gz
bcm5719-llvm-3cbaa468c27573149b5442086005a19c69b398a3.zip
Improve a scan-build message
llvm-svn: 208951
Diffstat (limited to 'clang/tools/scan-build')
-rwxr-xr-xclang/tools/scan-build/scan-build6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/tools/scan-build/scan-build b/clang/tools/scan-build/scan-build
index 03cdac3d9d3..452d15b9f5a 100755
--- a/clang/tools/scan-build/scan-build
+++ b/clang/tools/scan-build/scan-build
@@ -851,7 +851,11 @@ ENDTEXT
print CalcStats(\@Stats) if $AnalyzerStats;
my $Num = scalar(@Index);
- Diag("$Num bugs found.\n");
+ if ($Num == 1) {
+ Diag("$Num bug found.\n");
+ } else {
+ Diag("$Num bugs found.\n");
+ }
if ($Num > 0 && -r "$Dir/index.html") {
Diag("Run 'scan-view $Dir' to examine bug reports.\n");
}
OpenPOWER on IntegriCloud