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.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits