diff options
Diffstat (limited to 'include/clang/StaticAnalyzer/Core/BugReporter')
-rw-r--r-- | include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h b/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h index cdc9c8318d..973cfb109c 100644 --- a/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h +++ b/include/clang/StaticAnalyzer/Core/BugReporter/PathDiagnostic.h @@ -335,18 +335,9 @@ public: ranges.push_back(SourceRange(B,E)); } - typedef const SourceRange* range_iterator; - + /// Return the SourceRanges associated with this PathDiagnosticPiece. ArrayRef<SourceRange> getRanges() const { return ranges; } - range_iterator ranges_begin() const { - return ranges.empty() ? NULL : &ranges[0]; - } - - range_iterator ranges_end() const { - return ranges_begin() + ranges.size(); - } - static inline bool classof(const PathDiagnosticPiece *P) { return true; } |