]> granicus.if.org Git - clang/commitdiff
Rename IgnoringDiagClient to IgnoringDiagConsumer as per issue 5397
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 25 Sep 2011 23:44:35 +0000 (23:44 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 25 Sep 2011 23:44:35 +0000 (23:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140480 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Rewrite/HTMLRewrite.cpp

index ac5ca8c161f023c35f3762fbf5c703049ac653b5..1bdcddab534625c0179e7c8e4db246c6386d3f5a 100644 (file)
@@ -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