From: Daniel Dunbar Date: Thu, 7 Apr 2011 18:24:12 +0000 (+0000) Subject: ChainedDiagnosticClient: Fix a bug where chained diagnostic clients wouldn't X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b680d4bc53ecfece9b583f8e8566fddb5189d39a;p=clang ChainedDiagnosticClient: Fix a bug where chained diagnostic clients wouldn't accurately track warning/error counts. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129088 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Frontend/ChainedDiagnosticClient.h b/include/clang/Frontend/ChainedDiagnosticClient.h index 2d5e128dac..70f21901db 100644 --- a/include/clang/Frontend/ChainedDiagnosticClient.h +++ b/include/clang/Frontend/ChainedDiagnosticClient.h @@ -48,6 +48,9 @@ public: 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); }