diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-08-16 17:45:29 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-08-16 17:45:29 +0000 |
commit | 2b2c49d2ac5adb34f900f7a854a3ad5a6b0dff3c (patch) | |
tree | 0ac0128d98750f92850bc208d75088ca0853604b /lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp | |
parent | c4bac8e376b98d633bb00ee5f510d5e58449753c (diff) |
Remove "range_iterator" from PathDiagnosticPiece and just use ArrayRef<SourceRange> for ranges. This
removes conceptual clutter, and can allow us to easy migrate to C++11 style for-range loops if we
ever move to using C++11 in Clang.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162029 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp b/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp index 995135f260..c09bdf2b5e 100644 --- a/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp +++ b/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp @@ -482,9 +482,11 @@ void HTMLDiagnostics::HandlePiece(Rewriter& R, FileID BugFileID, R.InsertTextBefore(Loc, os.str()); // Now highlight the ranges. - for (const SourceRange *I = P.ranges_begin(), *E = P.ranges_end(); - I != E; ++I) + ArrayRef<SourceRange> Ranges = P.getRanges(); + for (ArrayRef<SourceRange>::iterator I = Ranges.begin(), + E = Ranges.end(); I != E; ++I) { HighlightRange(R, LPosInfo.first, *I); + } #if 0 // If there is a code insertion hint, insert that code. |