1 //===- OperationKinds.h - Operation enums -----------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file enumerates the different kinds of operations that can be
11 // performed by various expressions.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_CLANG_AST_OPERATIONKINDS_H
16 #define LLVM_CLANG_AST_OPERATIONKINDS_H
20 /// CastKind - The kind of operation required for a conversion.
22 #define CAST_OPERATION(Name) CK_##Name,
23 #include "clang/AST/OperationKinds.def"
26 enum BinaryOperatorKind {
27 #define BINARY_OPERATION(Name, Spelling) BO_##Name,
28 #include "clang/AST/OperationKinds.def"
31 enum UnaryOperatorKind {
32 #define UNARY_OPERATION(Name, Spelling) UO_##Name,
33 #include "clang/AST/OperationKinds.def"
36 /// The kind of bridging performed by the Objective-C bridge cast.
37 enum ObjCBridgeCastKind {
38 /// Bridging via __bridge, which does nothing but reinterpret
41 /// Bridging via __bridge_transfer, which transfers ownership of an
42 /// Objective-C pointer into ARC.
44 /// Bridging via __bridge_retain, which makes an ARC object available
45 /// as a +1 C pointer.
49 } // end namespace clang