From: Argyrios Kyrtzidis Date: Fri, 19 Nov 2010 00:19:20 +0000 (+0000) Subject: Remove Diagnostic's get/setNumErrors() and getNumErrorsSuppressed(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ffe6293123b8fe59bd9d6ed8e3ec755d68e7fac;p=clang Remove Diagnostic's get/setNumErrors() and getNumErrorsSuppressed(). 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 --- diff --git a/include/clang/Basic/Diagnostic.h b/include/clang/Basic/Diagnostic.h index b38df5f9c4..c4988e417d 100644 --- a/include/clang/Basic/Diagnostic.h +++ b/include/clang/Basic/Diagnostic.h @@ -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.