[cfe-commits] r39525 - /cfe/cfe/trunk/Driver/clang.cpp

bwendlin at cs.uiuc.edu bwendlin at cs.uiuc.edu
Wed Jul 11 09:45:17 PDT 2007


Author: bwendlin
Date: Wed Jul 11 11:45:17 2007
New Revision: 39525

URL: http://llvm.org/viewvc/llvm-project?rev=39525&view=rev
Log:
Submitted by: Bill Wendling

- Conjugate "diagnostic" correctly for 1 diagnostic.

Modified:
    cfe/cfe/trunk/Driver/clang.cpp

Modified: cfe/cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Driver/clang.cpp?rev=39525&r1=39524&r2=39525&view=diff

==============================================================================
--- cfe/cfe/trunk/Driver/clang.cpp (original)
+++ cfe/cfe/trunk/Driver/clang.cpp Wed Jul 11 11:45:17 2007
@@ -1211,7 +1211,9 @@
                      HeaderInfo, *Target, LangInfo);
   
   if (NumDiagnostics)
-    std::cerr << NumDiagnostics << " diagnostics generated.\n";
+    std::cerr << NumDiagnostics << " diagnostic"
+              << (NumDiagnostics == 1 ? "" : "s")
+              << " generated.\n";
   
   if (Stats) {
     // Printed from high-to-low level.





More information about the cfe-commits mailing list