aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Naumann <Axel.Naumann@cern.ch>2012-07-10 16:24:07 +0000
committerAxel Naumann <Axel.Naumann@cern.ch>2012-07-10 16:24:07 +0000
commite445e5d6377827f222f0d15e18fbd1f86114d2cc (patch)
tree1fab9c8b210582f742d65c67ade8955a9a05b939
parente265c877934dd24d11d85e991ede7d0742178495 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159995 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Frontend/VerifyDiagnosticConsumer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Frontend/VerifyDiagnosticConsumer.cpp b/lib/Frontend/VerifyDiagnosticConsumer.cpp
index e55e755561..1d9c196443 100644
--- a/lib/Frontend/VerifyDiagnosticConsumer.cpp
+++ b/lib/Frontend/VerifyDiagnosticConsumer.cpp
@@ -527,6 +527,9 @@ void VerifyDiagnosticConsumer::CheckDiagnostics() {
// 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 *