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