forked from OSchip/llvm-project
Don't use BuiltinBug in analyzer plugin example.
llvm-svn: 137811
This commit is contained in:
parent
be5e987379
commit
ae55cf2f90
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue