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 | c18255d80fe549c06b452a910a948dae7942b53f (patch) | |
tree | 6e6536a071a338ff34f727ec9c2db540811fa6c0 /clang/lib/Analysis/BugReporter.cpp | |
parent | 1359c1d773808b8468288a8071b36483fee2b7a3 (diff) | |
download | bcm5719-llvm-c18255d80fe549c06b452a910a948dae7942b53f.tar.gz bcm5719-llvm-c18255d80fe549c06b452a910a948dae7942b53f.zip |
Refactor Dead Stores error reporting to use the simplified BugReporter::EmitBasicReport interface.
llvm-svn: 53573
Diffstat (limited to 'clang/lib/Analysis/BugReporter.cpp')
-rw-r--r-- | clang/lib/Analysis/BugReporter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp index cbd61f8d25a..ed17c9d0cbc 100644 --- a/clang/lib/Analysis/BugReporter.cpp +++ b/clang/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); |