1 #include "clang/StaticAnalyzer/Core/BugReporter/BugType.h"
2 #include "clang/StaticAnalyzer/Core/Checker.h"
3 #include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
4 #include "clang/StaticAnalyzer/Frontend/CheckerRegistry.h"
10 struct Dependency
: public Checker
<check::BeginFunction
> {
11 void checkBeginFunction(CheckerContext
&Ctx
) const {}
13 struct DependendentChecker
: public Checker
<check::BeginFunction
> {
14 void checkBeginFunction(CheckerContext
&Ctx
) const {}
16 } // end anonymous namespace
19 extern "C" void clang_registerCheckers(CheckerRegistry
®istry
) {
20 registry
.addChecker
<Dependency
>("example.Dependency", "", "");
21 registry
.addChecker
<DependendentChecker
>("example.DependendentChecker", "",
24 registry
.addDependency("example.DependendentChecker", "example.Dependency");
27 extern "C" const char clang_analyzerAPIVersionString
[] =
28 CLANG_ANALYZER_API_VERSION_STRING
;