BuiltinCheckerRegistration.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===--- ClangSACheckers.h - Registration functions for Checkers *- C++ -*-===//
  7. //
  8. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  9. // See https://llvm.org/LICENSE.txt for license information.
  10. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  11. //
  12. //===----------------------------------------------------------------------===//
  13. //
  14. // Declares the registation functions for the checkers defined in
  15. // libclangStaticAnalyzerCheckers.
  16. //
  17. //===----------------------------------------------------------------------===//
  18. #ifndef LLVM_CLANG_STATICANALYZER_CHECKERS_BUILTINCHECKERREGISTRATION_H
  19. #define LLVM_CLANG_STATICANALYZER_CHECKERS_BUILTINCHECKERREGISTRATION_H
  20. #include "clang/StaticAnalyzer/Core/BugReporter/CommonBugCategories.h"
  21. namespace clang {
  22. namespace ento {
  23. class CheckerManager;
  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. } // end ento namespace
  32. } // end clang namespace
  33. #endif
  34. #ifdef __GNUC__
  35. #pragma GCC diagnostic pop
  36. #endif