summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2011-08-17 23:00:25 +0000
committerAnna Zaks <ganna@apple.com>2011-08-17 23:00:25 +0000
commit3a6bdf8f82c8541dbed92106f379ae2bc899c198 (patch)
tree93ca36a8529259429e77523b4a274707030b3a4b /clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp
parentf901e855336ee566cae4ea40678669228c74815d (diff)
downloadbcm5719-llvm-3a6bdf8f82c8541dbed92106f379ae2bc899c198.tar.gz
bcm5719-llvm-3a6bdf8f82c8541dbed92106f379ae2bc899c198.zip
Remove EnhancedBugReport and RangedBugReport - pull all the extra functionality they provided into their parent BugReport. The only functional changes are: made getRanges() non const - it adds default range to Ranges if none are supplied, made getStmt() private, which was another FIXME.
llvm-svn: 137894
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp
index d4050880b1a..480342c1a34 100644
--- a/clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp
+++ b/clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp
@@ -117,7 +117,7 @@ void PthreadLockChecker::AcquireLock(CheckerContext &C, const CallExpr *CE,
ExplodedNode *N = C.generateSink();
if (!N)
return;
- EnhancedBugReport *report = new EnhancedBugReport(*BT_doublelock,
+ BugReport *report = new BugReport(*BT_doublelock,
"This lock has already "
"been acquired", N);
report->addRange(CE->getArg(0)->getSourceRange());
@@ -181,7 +181,7 @@ void PthreadLockChecker::ReleaseLock(CheckerContext &C, const CallExpr *CE,
ExplodedNode *N = C.generateSink();
if (!N)
return;
- EnhancedBugReport *report = new EnhancedBugReport(*BT_lor,
+ BugReport *report = new BugReport(*BT_lor,
"This was not the most "
"recently acquired lock. "
"Possible lock order "
OpenPOWER on IntegriCloud