[cfe-commits] r129088 - /cfe/trunk/include/clang/Frontend/ChainedDiagnosticClient.h
Daniel Dunbar
daniel at zuster.org
Thu Apr 7 11:24:12 PDT 2011
Author: ddunbar
Date: Thu Apr 7 13:24:12 2011
New Revision: 129088
URL: http://llvm.org/viewvc/llvm-project?rev=129088&view=rev
Log:
ChainedDiagnosticClient: Fix a bug where chained diagnostic clients wouldn't
accurately track warning/error counts.
Modified:
cfe/trunk/include/clang/Frontend/ChainedDiagnosticClient.h
Modified: cfe/trunk/include/clang/Frontend/ChainedDiagnosticClient.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/ChainedDiagnosticClient.h?rev=129088&r1=129087&r2=129088&view=diff
==============================================================================
--- cfe/trunk/include/clang/Frontend/ChainedDiagnosticClient.h (original)
+++ cfe/trunk/include/clang/Frontend/ChainedDiagnosticClient.h Thu Apr 7 13:24:12 2011
@@ -48,6 +48,9 @@
virtual void HandleDiagnostic(Diagnostic::Level DiagLevel,
const DiagnosticInfo &Info) {
+ // Default implementation (Warnings/errors count).
+ DiagnosticClient::HandleDiagnostic(DiagLevel, Info);
+
Primary->HandleDiagnostic(DiagLevel, Info);
Secondary->HandleDiagnostic(DiagLevel, Info);
}
More information about the cfe-commits
mailing list