How to register a new checker in clang-analyzer?

I wrote a checker named “ReactorChecker” .After re-config, I got an error when I run “make” in the folder where I built LLVM and Clang.The error is:

error: ‘void clang::ento::registerReactorChecker(clang::ento::CheckerManager&)’ should have been declared inside ‘clang::ento’

PS:the version of my LLVM is 3.6.
Anybody help me ?Thank you very much!


You could look at this example:

In short you should add next lines into lib/StaticAnalyzer/Checkers/
def ReactorChecker : Checker<"Reactor">,

And don't forget to add you module into CMakeLists.txt