diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-07-14 20:56:04 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-07-14 20:56:04 +0000 |
commit | 8f2698621f5090db1dea691059bd0ebd79fb7f14 (patch) | |
tree | f1b2804786cddb35fc11fd9e0a000fbadf1a36a8 /lib/Analysis/BugReporter.cpp | |
parent | be2341d3b8bd34a14e921c58b53abaf79b0b0cb2 (diff) |
Refactor Dead Stores error reporting to use the simplified BugReporter::EmitBasicReport interface.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53573 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BugReporter.cpp')
-rw-r--r-- | lib/Analysis/BugReporter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp index cbd61f8d25..ed17c9d0cb 100644 --- a/lib/Analysis/BugReporter.cpp +++ b/lib/Analysis/BugReporter.cpp @@ -767,14 +767,15 @@ void BugReporter::EmitWarning(BugReport& R) { void BugReporter::EmitBasicReport(const char* name, const char* str, - SourceLocation Loc) { + SourceLocation Loc, + SourceRange* RBeg, unsigned NumRanges) { SimpleBugType BT(name); DiagCollector C(BT); Diagnostic& Diag = getDiagnostic(); Diag.Report(&C, getContext().getFullLoc(Loc), Diag.getCustomDiagID(Diagnostic::Warning, str), - 0, 0, 0, 0); + 0, 0, RBeg, NumRanges); for (DiagCollector::iterator I = C.begin(), E = C.end(); I != E; ++I) EmitWarning(*I); |