#include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
#include "clang/StaticAnalyzer/Core/Checker.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
#include "clang/StaticAnalyzer/Frontend/CheckerRegistry.h"
usingnamespaceclang;
usingnamespaceento;
namespace {
struct MyChecker : public Checker<check::BeginFunction> { … };
void registerMyChecker(CheckerManager &Mgr) { … }
bool shouldRegisterMyChecker(const CheckerManager &mgr) { … }
}
extern "C" void clang_registerCheckers(CheckerRegistry ®istry) { … }
extern "C" const char clang_analyzerAPIVersionString[] = …;