summaryrefslogtreecommitdiff
path: root/clang-r353983/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang-r353983/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h')
-rw-r--r--clang-r353983/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/clang-r353983/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h b/clang-r353983/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h
new file mode 100644
index 00000000..52a53449
--- /dev/null
+++ b/clang-r353983/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h
@@ -0,0 +1,38 @@
+//===-- CheckerRegistration.h - Checker Registration Function ---*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#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