Fix the example checker plugin after r349812.

llvm-svn: 349816
This commit is contained in:
Aaron Ballman 2018-12-20 20:35:01 +00:00
parent e0153b6f8a
commit 0e44ffdb0e
1 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,9 @@ void MainCallChecker::checkPreStmt(const CallExpr *CE, CheckerContext &C) const
// Register plugin!
extern "C"
void clang_registerCheckers (CheckerRegistry &registry) {
registry.addChecker<MainCallChecker>("example.MainCallChecker", "Disallows calls to functions called main");
registry.addChecker<MainCallChecker>(
"example.MainCallChecker", "Disallows calls to functions called main",
"");
}
extern "C"