[cfe-commits] r159995 - /cfe/trunk/lib/Frontend/VerifyDiagnosticConsumer.cpp
Axel Naumann
Axel.Naumann at cern.ch
Tue Jul 10 09:24:07 PDT 2012
Author: axel
Date: Tue Jul 10 11:24:07 2012
New Revision: 159995
URL: http://llvm.org/viewvc/llvm-project?rev=159995&view=rev
Log:
Clear diagnostic counts after processing the diagnostics.
The consumer might see multiple input files (e.g. for cling) and since r159977 the count is maintained across input files.
Modified:
cfe/trunk/lib/Frontend/VerifyDiagnosticConsumer.cpp
Modified: cfe/trunk/lib/Frontend/VerifyDiagnosticConsumer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/VerifyDiagnosticConsumer.cpp?rev=159995&r1=159994&r2=159995&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/VerifyDiagnosticConsumer.cpp (original)
+++ cfe/trunk/lib/Frontend/VerifyDiagnosticConsumer.cpp Tue Jul 10 11:24:07 2012
@@ -527,6 +527,9 @@
// Reset the buffer, we have processed all the diagnostics in it.
Buffer.reset(new TextDiagnosticBuffer());
+ ED.Errors.clear();
+ ED.Warnings.clear();
+ ED.Notes.clear();
}
DiagnosticConsumer *
More information about the cfe-commits
mailing list