diff options
author | Daniel Dunbar <daniel@zuster.org> | 2011-04-07 18:24:12 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2011-04-07 18:24:12 +0000 |
commit | b680d4bc53ecfece9b583f8e8566fddb5189d39a (patch) | |
tree | 64a304e19653bbf8eba529562aaea02e97adf7c0 | |
parent | 08c6695f6018fb6cb1a7c7d311a851aa5c233bc0 (diff) |
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
-rw-r--r-- | include/clang/Frontend/ChainedDiagnosticClient.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |