r208951 - Improve a scan-build message
Sylvestre Ledru
sylvestre at debian.org
Fri May 16 00:03:16 PDT 2014
Author: sylvestre
Date: Fri May 16 02:03:15 2014
New Revision: 208951
URL: http://llvm.org/viewvc/llvm-project?rev=208951&view=rev
Log:
Improve a scan-build message
Modified:
cfe/trunk/tools/scan-build/scan-build
Modified: cfe/trunk/tools/scan-build/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/scan-build?rev=208951&r1=208950&r2=208951&view=diff
==============================================================================
--- cfe/trunk/tools/scan-build/scan-build (original)
+++ cfe/trunk/tools/scan-build/scan-build Fri May 16 02:03:15 2014
@@ -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");
}
More information about the cfe-commits
mailing list