From: David Blaikie Date: Sun, 25 Sep 2011 23:44:35 +0000 (+0000) Subject: Rename IgnoringDiagClient to IgnoringDiagConsumer as per issue 5397 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f40c0ac1238a0ef2010238a43cb078465401239a;p=clang Rename IgnoringDiagClient to IgnoringDiagConsumer as per issue 5397 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140480 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Rewrite/HTMLRewrite.cpp b/lib/Rewrite/HTMLRewrite.cpp index ac5ca8c161..1bdcddab53 100644 --- a/lib/Rewrite/HTMLRewrite.cpp +++ b/lib/Rewrite/HTMLRewrite.cpp @@ -441,9 +441,9 @@ void html::SyntaxHighlight(Rewriter &R, FileID FID, const Preprocessor &PP) { } namespace { -/// IgnoringDiagClient - This is a diagnostic client that just ignores all +/// IgnoringDiagConsumer - This is a diagnostic client that just ignores all /// diags. -class IgnoringDiagClient : public DiagnosticConsumer { +class IgnoringDiagConsumer : public DiagnosticConsumer { void HandleDiagnostic(DiagnosticsEngine::Level DiagLevel, const DiagnosticInfo &Info) { // Just ignore it. @@ -494,7 +494,7 @@ void html::HighlightMacros(Rewriter &R, FileID FID, const Preprocessor& PP) { // Temporarily change the diagnostics object so that we ignore any generated // diagnostics from this pass. DiagnosticsEngine TmpDiags(PP.getDiagnostics().getDiagnosticIDs(), - new IgnoringDiagClient); + new IgnoringDiagConsumer); // FIXME: This is a huge hack; we reuse the input preprocessor because we want // its state, but we aren't actually changing it (we hope). This should really