Keep track of errors/warnings in FixItRewriter.

llvm-svn: 119735
This commit is contained in:
Argyrios Kyrtzidis 2010-11-18 21:13:54 +00:00
parent 3df7f94fd0
commit 6d35b5a210
1 changed files with 3 additions and 0 deletions

View File

@ -80,6 +80,9 @@ bool FixItRewriter::IncludeInDiagnosticCounts() const {
void FixItRewriter::HandleDiagnostic(Diagnostic::Level DiagLevel,
const DiagnosticInfo &Info) {
// Default implementation (Warnings/errors count).
DiagnosticClient::HandleDiagnostic(DiagLevel, Info);
Client->HandleDiagnostic(DiagLevel, Info);
// Skip over any diagnostics that are ignored or notes.