xref: /openbsd-src/gnu/llvm/clang/include/clang/StaticAnalyzer/Checkers/BuiltinCheckerRegistration.h (revision 12c855180aad702bbcca06e0398d774beeafb155)
1e5dd7070Spatrick //===--- ClangSACheckers.h - Registration functions for Checkers *- C++ -*-===//
2e5dd7070Spatrick //
3e5dd7070Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4e5dd7070Spatrick // See https://llvm.org/LICENSE.txt for license information.
5e5dd7070Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6e5dd7070Spatrick //
7e5dd7070Spatrick //===----------------------------------------------------------------------===//
8e5dd7070Spatrick //
9e5dd7070Spatrick // Declares the registation functions for the checkers defined in
10e5dd7070Spatrick // libclangStaticAnalyzerCheckers.
11e5dd7070Spatrick //
12e5dd7070Spatrick //===----------------------------------------------------------------------===//
13e5dd7070Spatrick 
14*12c85518Srobert #ifndef LLVM_CLANG_STATICANALYZER_CHECKERS_BUILTINCHECKERREGISTRATION_H
15*12c85518Srobert #define LLVM_CLANG_STATICANALYZER_CHECKERS_BUILTINCHECKERREGISTRATION_H
16e5dd7070Spatrick 
17e5dd7070Spatrick #include "clang/StaticAnalyzer/Core/BugReporter/CommonBugCategories.h"
18e5dd7070Spatrick 
19e5dd7070Spatrick namespace clang {
20e5dd7070Spatrick namespace ento {
21e5dd7070Spatrick 
22e5dd7070Spatrick class CheckerManager;
23e5dd7070Spatrick 
24e5dd7070Spatrick #define GET_CHECKERS
25e5dd7070Spatrick #define CHECKER(FULLNAME, CLASS, HELPTEXT, DOC_URI, IS_HIDDEN)                 \
26e5dd7070Spatrick   void register##CLASS(CheckerManager &mgr);                                   \
27ec727ea7Spatrick   bool shouldRegister##CLASS(const CheckerManager &mgr);
28e5dd7070Spatrick #include "clang/StaticAnalyzer/Checkers/Checkers.inc"
29e5dd7070Spatrick #undef CHECKER
30e5dd7070Spatrick #undef GET_CHECKERS
31e5dd7070Spatrick 
32e5dd7070Spatrick } // end ento namespace
33e5dd7070Spatrick 
34e5dd7070Spatrick } // end clang namespace
35e5dd7070Spatrick 
36e5dd7070Spatrick #endif
37