[cfe-commits] r53962 - /cfe/trunk/include/clang/Analysis/PathDiagnostic.h
Ted Kremenek
kremenek at apple.com
Wed Jul 23 14:51:43 PDT 2008
Author: kremenek
Date: Wed Jul 23 16:51:42 2008
New Revision: 53962
URL: http://llvm.org/viewvc/llvm-project?rev=53962&view=rev
Log:
Use typedef range_iterator instead of SourceRange* in PathDiagnosticPiece.
Modified:
cfe/trunk/include/clang/Analysis/PathDiagnostic.h
Modified: cfe/trunk/include/clang/Analysis/PathDiagnostic.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/PathDiagnostic.h?rev=53962&r1=53961&r2=53962&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/PathDiagnostic.h (original)
+++ cfe/trunk/include/clang/Analysis/PathDiagnostic.h Wed Jul 23 16:51:42 2008
@@ -56,11 +56,13 @@
ranges.push_back(SourceRange(B,E));
}
- const SourceRange* ranges_begin() const {
+ typedef const SourceRange* range_iterator;
+
+ range_iterator ranges_begin() const {
return ranges.empty() ? NULL : &ranges[0];
}
- const SourceRange* ranges_end() const {
+ range_iterator ranges_end() const {
return ranges_begin() + ranges.size();
}
More information about the cfe-commits
mailing list