From e7bcad327814a78ecb8d5f5545d2e3df84c67a5c Mon Sep 17 00:00:00 2001 From: dim Date: Sun, 5 Jul 2015 14:23:59 +0000 Subject: Vendor import of clang trunk r241361: https://llvm.org/svn/llvm-project/cfe/trunk@241361 --- examples/analyzer-plugin/MainCallChecker.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/analyzer-plugin/MainCallChecker.cpp') diff --git a/examples/analyzer-plugin/MainCallChecker.cpp b/examples/analyzer-plugin/MainCallChecker.cpp index 2ad8c84..a6f69fd 100644 --- a/examples/analyzer-plugin/MainCallChecker.cpp +++ b/examples/analyzer-plugin/MainCallChecker.cpp @@ -37,9 +37,10 @@ void MainCallChecker::checkPreStmt(const CallExpr *CE, CheckerContext &C) const if (!BT) BT.reset(new BugType(this, "call to main", "example analyzer plugin")); - BugReport *report = new BugReport(*BT, BT->getName(), N); + std::unique_ptr report = + llvm::make_unique(*BT, BT->getName(), N); report->addRange(Callee->getSourceRange()); - C.emitReport(report); + C.emitReport(std::move(report)); } } -- cgit v1.1