[cfe-commits] r140483 - /cfe/trunk/lib/Frontend/ASTUnit.cpp

David Blaikie dblaikie at gmail.com
Sun Sep 25 17:01:39 PDT 2011


Author: dblaikie
Date: Sun Sep 25 19:01:39 2011
New Revision: 140483

URL: http://llvm.org/viewvc/llvm-project?rev=140483&view=rev
Log:
Rename StoredDiagnosticClient to StoredDiagnosticConsumer as per issue 5397

Modified:
    cfe/trunk/lib/Frontend/ASTUnit.cpp

Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=140483&r1=140482&r2=140483&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Sun Sep 25 19:01:39 2011
@@ -448,11 +448,11 @@
   }
 };
 
-class StoredDiagnosticClient : public DiagnosticConsumer {
+class StoredDiagnosticConsumer : public DiagnosticConsumer {
   SmallVectorImpl<StoredDiagnostic> &StoredDiags;
   
 public:
-  explicit StoredDiagnosticClient(
+  explicit StoredDiagnosticConsumer(
                           SmallVectorImpl<StoredDiagnostic> &StoredDiags)
     : StoredDiags(StoredDiags) { }
   
@@ -464,7 +464,7 @@
 /// there is no diagnostic client to capture them already.
 class CaptureDroppedDiagnostics {
   DiagnosticsEngine &Diags;
-  StoredDiagnosticClient Client;
+  StoredDiagnosticConsumer Client;
   DiagnosticConsumer *PreviousClient;
 
 public:
@@ -488,7 +488,7 @@
 
 } // anonymous namespace
 
-void StoredDiagnosticClient::HandleDiagnostic(DiagnosticsEngine::Level Level,
+void StoredDiagnosticConsumer::HandleDiagnostic(DiagnosticsEngine::Level Level,
                                               const DiagnosticInfo &Info) {
   // Default implementation (Warnings/errors count).
   DiagnosticConsumer::HandleDiagnostic(Level, Info);
@@ -516,11 +516,11 @@
     DiagnosticOptions DiagOpts;
     DiagnosticConsumer *Client = 0;
     if (CaptureDiagnostics)
-      Client = new StoredDiagnosticClient(AST.StoredDiagnostics);
+      Client = new StoredDiagnosticConsumer(AST.StoredDiagnostics);
     Diags = CompilerInstance::createDiagnostics(DiagOpts, ArgEnd- ArgBegin, 
                                                 ArgBegin, Client);
   } else if (CaptureDiagnostics) {
-    Diags->setClient(new StoredDiagnosticClient(AST.StoredDiagnostics));
+    Diags->setClient(new StoredDiagnosticConsumer(AST.StoredDiagnostics));
   }
 }
 





More information about the cfe-commits mailing list