From: Jordy Rose Date: Wed, 17 Aug 2011 03:23:51 +0000 (+0000) Subject: Don't use BuiltinBug in analyzer plugin example. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=26fb4cbaef01a98b78eb24b1ec72946a87e70595;p=clang Don't use BuiltinBug in analyzer plugin example. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137811 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/examples/analyzer-plugin/MainCallChecker.cpp b/examples/analyzer-plugin/MainCallChecker.cpp index bf753899c2..a720bb9647 100644 --- a/examples/analyzer-plugin/MainCallChecker.cpp +++ b/examples/analyzer-plugin/MainCallChecker.cpp @@ -34,7 +34,7 @@ void MainCallChecker::checkPreStmt(const CallExpr *CE, CheckerContext &C) const return; if (!BT) - BT.reset(new BuiltinBug("call to main")); + BT.reset(new BugType("call to main", "example analyzer plugin")); RangedBugReport *report = new RangedBugReport(*BT, BT->getName(), N); report->addRange(Callee->getSourceRange());