Coverage Report

Created: 2020-09-22 08:39

/Users/buildslave/jenkins/workspace/coverage/llvm-project/clang/lib/Analysis/plugins/CheckerDependencyHandling/CheckerDependencyHandling.cpp
Line
Count
Source (jump to first uncovered line)
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"
5
6
using namespace clang;
7
using namespace ento;
8
9
namespace {
10
struct Dependency : public Checker<check::BeginFunction> {
11
0
  void checkBeginFunction(CheckerContext &Ctx) const {}
12
};
13
struct DependendentChecker : public Checker<check::BeginFunction> {
14
0
  void checkBeginFunction(CheckerContext &Ctx) const {}
15
};
16
} // end anonymous namespace
17
18
// Register plugin!
19
0
extern "C" void clang_registerCheckers(CheckerRegistry &registry) {
20
0
  registry.addChecker<Dependency>("example.Dependency", "", "");
21
0
  registry.addChecker<DependendentChecker>("example.DependendentChecker", "",
22
0
                                           "");
23
24
0
  registry.addDependency("example.DependendentChecker", "example.Dependency");
25
0
}
26
27
extern "C" const char clang_analyzerAPIVersionString[] =
28
    CLANG_ANALYZER_API_VERSION_STRING;