]> granicus.if.org Git - clang/commitdiff
Don't use BuiltinBug in analyzer plugin example.
authorJordy Rose <jediknil@belkadan.com>
Wed, 17 Aug 2011 03:23:51 +0000 (03:23 +0000)
committerJordy Rose <jediknil@belkadan.com>
Wed, 17 Aug 2011 03:23:51 +0000 (03:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137811 91177308-0d34-0410-b5e6-96231b3b80d8

examples/analyzer-plugin/MainCallChecker.cpp

index bf753899c21df7b1097394778cb376fe60c03878..a720bb964707840a9e79defffd31e4befa34886c 100644 (file)
@@ -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());