clang  7.0.0
CheckerRegistration.h
Go to the documentation of this file.
1 //===-- CheckerRegistration.h - Checker Registration Function ---*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 #ifndef LLVM_CLANG_STATICANALYZER_FRONTEND_CHECKERREGISTRATION_H
11 #define LLVM_CLANG_STATICANALYZER_FRONTEND_CHECKERREGISTRATION_H
12 
13 #include "clang/Basic/LLVM.h"
14 #include <functional>
15 #include <memory>
16 #include <string>
17 
18 namespace clang {
19  class AnalyzerOptions;
20  class LangOptions;
21  class DiagnosticsEngine;
22 
23 namespace ento {
24  class CheckerManager;
25  class CheckerRegistry;
26 
27  std::unique_ptr<CheckerManager> createCheckerManager(
28  AnalyzerOptions &opts, const LangOptions &langOpts,
29  ArrayRef<std::string> plugins,
30  ArrayRef<std::function<void(CheckerRegistry &)>> checkerRegistrationFns,
31  DiagnosticsEngine &diags);
32 
33 } // end ento namespace
34 
35 } // end namespace clang
36 
37 #endif
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
std::unique_ptr< CheckerManager > createCheckerManager(AnalyzerOptions &opts, const LangOptions &langOpts, ArrayRef< std::string > plugins, ArrayRef< std::function< void(CheckerRegistry &)>> checkerRegistrationFns, DiagnosticsEngine &diags)
Dataflow Directional Tag Classes.