blob: 6a98ed8eebce59008c11ac46554b41d90c195fbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
//===--- CheckerManager.h - Static Analyzer Checker Manager -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// Defines the Static Analyzer Checker Manager.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CLANG_SA_CORE_CHECKERMANAGER_H
#define LLVM_CLANG_SA_CORE_CHECKERMANAGER_H
#include "llvm/ADT/SmallVector.h"
namespace clang {
namespace ento {
class ExprEngine;
class CheckerManager {
public:
typedef void (*RegisterFunc)(ExprEngine &Eng);
void addCheckerRegisterFunction(RegisterFunc fn) {
Funcs.push_back(fn);
}
void registerCheckersToEngine(ExprEngine &eng);
private:
llvm::SmallVector<RegisterFunc, 8> Funcs;
};
} // end ento namespace
} // end clang namespace
#endif
|