[Flang] remove whole-archive option for AIX linker (#76039)
[llvm-project.git] / clang / lib / Analysis / plugins / CheckerDependencyHandling / CheckerDependencyHandling.cpp
blobbe8e1200d0bfd1e53e552df8ccbb22c03b37b0af
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"
6 using namespace clang;
7 using namespace ento;
9 namespace {
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
18 // Register plugin!
19 extern "C" void clang_registerCheckers(CheckerRegistry &registry) {
20 registry.addChecker<Dependency>("example.Dependency", "", "");
21 registry.addChecker<DependendentChecker>("example.DependendentChecker", "",
22 "");
24 registry.addDependency("example.DependendentChecker", "example.Dependency");
27 extern "C" const char clang_analyzerAPIVersionString[] =
28 CLANG_ANALYZER_API_VERSION_STRING;