diff options
Diffstat (limited to 'examples/analyzer-plugin/MainCallChecker.cpp')
-rw-r--r-- | examples/analyzer-plugin/MainCallChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/analyzer-plugin/MainCallChecker.cpp b/examples/analyzer-plugin/MainCallChecker.cpp index 8801f9a158fa..2ad8c8416a5e 100644 --- a/examples/analyzer-plugin/MainCallChecker.cpp +++ b/examples/analyzer-plugin/MainCallChecker.cpp @@ -8,7 +8,7 @@ using namespace ento; namespace { class MainCallChecker : public Checker < check::PreStmt<CallExpr> > { - mutable OwningPtr<BugType> BT; + mutable std::unique_ptr<BugType> BT; public: void checkPreStmt(const CallExpr *CE, CheckerContext &C) const; @@ -35,7 +35,7 @@ void MainCallChecker::checkPreStmt(const CallExpr *CE, CheckerContext &C) const return; if (!BT) - BT.reset(new BugType("call to main", "example analyzer plugin")); + BT.reset(new BugType(this, "call to main", "example analyzer plugin")); BugReport *report = new BugReport(*BT, BT->getName(), N); report->addRange(Callee->getSourceRange()); |