]> granicus.if.org Git - clang/commitdiff
Remove Diagnostic's get/setNumErrors() and getNumErrorsSuppressed().
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 19 Nov 2010 00:19:20 +0000 (00:19 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 19 Nov 2010 00:19:20 +0000 (00:19 +0000)
Anyone wanting to use it should probably use DiagnosticClient's getNumErrors() instead.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119766 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/Diagnostic.h

index b38df5f9c4f7db84ac85b5538b80c9c1d184262d..c4988e417dc5b5531eba45799b2b1e313dd28635 100644 (file)
@@ -371,18 +371,12 @@ public:
   bool hasErrorOccurred() const { return ErrorOccurred; }
   bool hasFatalErrorOccurred() const { return FatalErrorOccurred; }
 
-  unsigned getNumErrors() const { return NumErrors; }
-  unsigned getNumErrorsSuppressed() const { return NumErrorsSuppressed; }
   unsigned getNumWarnings() const { return NumWarnings; }
 
   void setNumWarnings(unsigned NumWarnings) {
     this->NumWarnings = NumWarnings;
   }
 
-  void setNumErrors(unsigned NumErrors) {
-    this->NumErrors = NumErrors;
-  }
-
   /// getCustomDiagID - Return an ID for a diagnostic with the specified message
   /// and level.  If this is the first request for this diagnosic, it is
   /// registered and created, otherwise the existing ID is returned.