diff options
Diffstat (limited to 'clang-r344140b/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h')
| -rw-r--r-- | clang-r344140b/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/clang-r344140b/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h b/clang-r344140b/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h new file mode 100644 index 00000000..61709548 --- /dev/null +++ b/clang-r344140b/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h @@ -0,0 +1,39 @@ +//===-- CheckerRegistration.h - Checker Registration Function ---*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_CLANG_STATICANALYZER_FRONTEND_CHECKERREGISTRATION_H +#define LLVM_CLANG_STATICANALYZER_FRONTEND_CHECKERREGISTRATION_H + +#include "clang/AST/ASTContext.h" +#include "clang/Basic/LLVM.h" +#include <functional> +#include <memory> +#include <string> + +namespace clang { + class AnalyzerOptions; + class LangOptions; + class DiagnosticsEngine; + +namespace ento { + class CheckerManager; + class CheckerRegistry; + + std::unique_ptr<CheckerManager> createCheckerManager( + ASTContext &context, + AnalyzerOptions &opts, + ArrayRef<std::string> plugins, + ArrayRef<std::function<void(CheckerRegistry &)>> checkerRegistrationFns, + DiagnosticsEngine &diags); + +} // end ento namespace + +} // end namespace clang + +#endif |
