AttrKinds.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===----- Attr.h - Enum values for C Attribute Kinds ----------*- 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. /// \file
  15. /// Defines the clang::attr::Kind enum.
  16. ///
  17. //===----------------------------------------------------------------------===//
  18. #ifndef LLVM_CLANG_BASIC_ATTRKINDS_H
  19. #define LLVM_CLANG_BASIC_ATTRKINDS_H
  20. namespace clang {
  21. namespace attr {
  22. // A list of all the recognized kinds of attributes.
  23. enum Kind {
  24. #define ATTR(X) X,
  25. #define ATTR_RANGE(CLASS, FIRST_NAME, LAST_NAME) \
  26. First##CLASS = FIRST_NAME, \
  27. Last##CLASS = LAST_NAME,
  28. #include "clang/Basic/AttrList.inc"
  29. };
  30. } // end namespace attr
  31. } // end namespace clang
  32. #endif
  33. #ifdef __GNUC__
  34. #pragma GCC diagnostic pop
  35. #endif