OperationKinds.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #pragma once
  2. #ifdef __GNUC__
  3. #pragma GCC diagnostic push
  4. #pragma GCC diagnostic ignored "-Wunused-parameter"
  5. #endif
  6. //===- OperationKinds.h - Operation enums -----------------------*- 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. // This file enumerates the different kinds of operations that can be
  15. // performed by various expressions.
  16. //
  17. //===----------------------------------------------------------------------===//
  18. #ifndef LLVM_CLANG_AST_OPERATIONKINDS_H
  19. #define LLVM_CLANG_AST_OPERATIONKINDS_H
  20. namespace clang {
  21. /// CastKind - The kind of operation required for a conversion.
  22. enum CastKind {
  23. #define CAST_OPERATION(Name) CK_##Name,
  24. #include "clang/AST/OperationKinds.def"
  25. };
  26. enum BinaryOperatorKind {
  27. #define BINARY_OPERATION(Name, Spelling) BO_##Name,
  28. #include "clang/AST/OperationKinds.def"
  29. };
  30. enum UnaryOperatorKind {
  31. #define UNARY_OPERATION(Name, Spelling) UO_##Name,
  32. #include "clang/AST/OperationKinds.def"
  33. };
  34. /// The kind of bridging performed by the Objective-C bridge cast.
  35. enum ObjCBridgeCastKind {
  36. /// Bridging via __bridge, which does nothing but reinterpret
  37. /// the bits.
  38. OBC_Bridge,
  39. /// Bridging via __bridge_transfer, which transfers ownership of an
  40. /// Objective-C pointer into ARC.
  41. OBC_BridgeTransfer,
  42. /// Bridging via __bridge_retain, which makes an ARC object available
  43. /// as a +1 C pointer.
  44. OBC_BridgeRetained
  45. };
  46. } // end namespace clang
  47. #endif
  48. #ifdef __GNUC__
  49. #pragma GCC diagnostic pop
  50. #endif