aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Analysis/PathSensitive/BugReporter.h
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-14 20:56:04 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-14 20:56:04 +0000
commit8f2698621f5090db1dea691059bd0ebd79fb7f14 (patch)
treef1b2804786cddb35fc11fd9e0a000fbadf1a36a8 /include/clang/Analysis/PathSensitive/BugReporter.h
parentbe2341d3b8bd34a14e921c58b53abaf79b0b0cb2 (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 'include/clang/Analysis/PathSensitive/BugReporter.h')
-rw-r--r--include/clang/Analysis/PathSensitive/BugReporter.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/clang/Analysis/PathSensitive/BugReporter.h b/include/clang/Analysis/PathSensitive/BugReporter.h
index 1bbba40418..4374c1e40a 100644
--- a/include/clang/Analysis/PathSensitive/BugReporter.h
+++ b/include/clang/Analysis/PathSensitive/BugReporter.h
@@ -190,7 +190,18 @@ public:
void EmitWarning(BugReport& R);
void EmitBasicReport(const char* BugName, const char* BugStr,
- SourceLocation Loc);
+ SourceLocation Loc,
+ SourceRange* RangeBeg, unsigned NumRanges);
+
+ void EmitBasicReport(const char* BugName, const char* BugStr,
+ SourceLocation Loc) {
+ EmitBasicReport(BugName, BugStr, Loc, 0, 0);
+ }
+
+ void EmitBasicReport(const char* BugName, const char* BugStr,
+ SourceLocation Loc, SourceRange R) {
+ EmitBasicReport(BugName, BugStr, Loc, &R, 1);
+ }
static bool classof(const BugReporter* R) { return true; }
};