DiagnosticComment.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===--- DiagnosticComment.h - Diagnostics for the AST library --*- 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_DIAGNOSTICCOMMENT_H
  14. #define LLVM_CLANG_BASIC_DIAGNOSTICCOMMENT_H
  15. #include "clang/Basic/Diagnostic.h"
  16. namespace clang {
  17. namespace diag {
  18. enum {
  19. #define DIAG(ENUM, FLAGS, DEFAULT_MAPPING, DESC, GROUP, SFINAE, NOWERROR, \
  20. SHOWINSYSHEADER, SHOWINSYSMACRO, DEFERRABLE, CATEGORY) \
  21. ENUM,
  22. #define COMMENTSTART
  23. #include "clang/Basic/DiagnosticCommentKinds.inc"
  24. #undef DIAG
  25. NUM_BUILTIN_COMMENT_DIAGNOSTICS
  26. };
  27. } // end namespace diag
  28. } // end namespace clang
  29. #endif // LLVM_CLANG_BASIC_DIAGNOSTICCOMMENT_H
  30. #ifdef __GNUC__
  31. #pragma GCC diagnostic pop
  32. #endif