[cfe-commits] r119766 - /cfe/trunk/include/clang/Basic/Diagnostic.h
Argyrios Kyrtzidis
akyrtzi at gmail.com
Thu Nov 18 16:19:20 PST 2010
Author: akirtzidis
Date: Thu Nov 18 18:19:20 2010
New Revision: 119766
URL: http://llvm.org/viewvc/llvm-project?rev=119766&view=rev
Log:
Remove Diagnostic's get/setNumErrors() and getNumErrorsSuppressed().
Anyone wanting to use it should probably use DiagnosticClient's getNumErrors() instead.
Modified:
cfe/trunk/include/clang/Basic/Diagnostic.h
Modified: cfe/trunk/include/clang/Basic/Diagnostic.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/Diagnostic.h?rev=119766&r1=119765&r2=119766&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/Diagnostic.h (original)
+++ cfe/trunk/include/clang/Basic/Diagnostic.h Thu Nov 18 18:19:20 2010
@@ -371,18 +371,12 @@
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.
More information about the cfe-commits
mailing list