[cfe-commits] r70278 - /cfe/trunk/tools/clang-cc/clang-cc.cpp
Mike Stump
mrs at apple.com
Mon Apr 27 18:19:10 PDT 2009
Author: mrs
Date: Mon Apr 27 20:19:10 2009
New Revision: 70278
URL: http://llvm.org/viewvc/llvm-project?rev=70278&view=rev
Log:
We avoid the count of diagnostics when not generating carent
diagnostics to improve gcc compatibility; useful for dejagnu testing.
Modified:
cfe/trunk/tools/clang-cc/clang-cc.cpp
Modified: cfe/trunk/tools/clang-cc/clang-cc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-cc/clang-cc.cpp?rev=70278&r1=70277&r2=70278&view=diff
==============================================================================
--- cfe/trunk/tools/clang-cc/clang-cc.cpp (original)
+++ cfe/trunk/tools/clang-cc/clang-cc.cpp Mon Apr 27 20:19:10 2009
@@ -1990,9 +1990,10 @@
fprintf(stderr, "clang version 1.0 based upon " PACKAGE_STRING
" hosted on " LLVM_HOSTTRIPLE "\n");
- if (unsigned NumDiagnostics = Diags.getNumDiagnostics())
- fprintf(stderr, "%d diagnostic%s generated.\n", NumDiagnostics,
- (NumDiagnostics == 1 ? "" : "s"));
+ if (!NoCaretDiagnostics)
+ if (unsigned NumDiagnostics = Diags.getNumDiagnostics())
+ fprintf(stderr, "%d diagnostic%s generated.\n", NumDiagnostics,
+ (NumDiagnostics == 1 ? "" : "s"));
if (Stats) {
FileMgr.PrintStats();
More information about the cfe-commits
mailing list