]> granicus.if.org Git - clang/commitdiff
ChainedDiagnosticClient: Fix a bug where chained diagnostic clients wouldn't
authorDaniel Dunbar <daniel@zuster.org>
Thu, 7 Apr 2011 18:24:12 +0000 (18:24 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 7 Apr 2011 18:24:12 +0000 (18:24 +0000)
accurately track warning/error counts.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129088 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Frontend/ChainedDiagnosticClient.h

index 2d5e128dac3750c1b8ac61b3014dbf7e461f83f4..70f21901db4fc3de153f489d97bbae6ff45ea8ce 100644 (file)
@@ -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);
   }