DiagnosticCategories.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- DiagnosticCategories.h - Diagnostic Categories Enumerators-*- 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. #ifndef LLVM_CLANG_BASIC_DIAGNOSTICCATEGORIES_H
  14. #define LLVM_CLANG_BASIC_DIAGNOSTICCATEGORIES_H
  15. namespace clang {
  16. namespace diag {
  17. enum {
  18. #define GET_CATEGORY_TABLE
  19. #define CATEGORY(X, ENUM) ENUM,
  20. #include "clang/Basic/DiagnosticGroups.inc"
  21. #undef CATEGORY
  22. #undef GET_CATEGORY_TABLE
  23. DiagCat_NUM_CATEGORIES
  24. };
  25. enum class Group {
  26. #define DIAG_ENTRY(GroupName, FlagNameOffset, Members, SubGroups) GroupName,
  27. #include "clang/Basic/DiagnosticGroups.inc"
  28. #undef CATEGORY
  29. #undef DIAG_ENTRY
  30. };
  31. } // end namespace diag
  32. } // end namespace clang
  33. #endif
  34. #ifdef __GNUC__
  35. #pragma GCC diagnostic pop
  36. #endif