From 3cbaa468c27573149b5442086005a19c69b398a3 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 16 May 2014 07:03:15 +0000 Subject: Improve a scan-build message llvm-svn: 208951 --- clang/tools/scan-build/scan-build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'clang/tools/scan-build') 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"); } -- cgit v1.2.1