[cfe-commits] r39707 - /cfe/cfe/trunk/Driver/TextDiagnosticBuffer.h
clattner at cs.uiuc.edu
clattner at cs.uiuc.edu
Wed Jul 11 09:47:22 PDT 2007
Author: clattner
Date: Wed Jul 11 11:47:22 2007
New Revision: 39707
URL: http://llvm.org/viewvc/llvm-project?rev=39707&view=rev
Log:
Clients should only get read-only access to diagnostic info.
Modified:
cfe/cfe/trunk/Driver/TextDiagnosticBuffer.h
Modified: cfe/cfe/trunk/Driver/TextDiagnosticBuffer.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Driver/TextDiagnosticBuffer.h?rev=39707&r1=39706&r2=39707&view=diff
==============================================================================
--- cfe/cfe/trunk/Driver/TextDiagnosticBuffer.h (original)
+++ cfe/cfe/trunk/Driver/TextDiagnosticBuffer.h Wed Jul 11 11:47:22 2007
@@ -28,19 +28,13 @@
typedef DiagList::iterator iterator;
typedef DiagList::const_iterator const_iterator;
private:
- DiagList Errors;
- DiagList Warnings;
+ DiagList Errors, Warnings;
public:
- TextDiagnosticBuffer(SourceManager &sourceMgr)
- : TextDiagnostics(sourceMgr) {}
+ TextDiagnosticBuffer(SourceManager &SM) : TextDiagnostics(SM) {}
- iterator err_begin() { return Errors.begin(); }
- iterator err_end() { return Errors.end(); }
const_iterator err_begin() const { return Errors.begin(); }
const_iterator err_end() const { return Errors.end(); }
- iterator warn_begin() { return Warnings.begin(); }
- iterator warn_end() { return Warnings.end(); }
const_iterator warn_begin() const { return Warnings.begin(); }
const_iterator warn_end() const { return Warnings.end(); }
More information about the cfe-commits
mailing list