clang 19.0.0git
OperationKinds.h
Go to the documentation of this file.
1//===- OperationKinds.h - Operation enums -----------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// This file enumerates the different kinds of operations that can be
10// performed by various expressions.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_CLANG_AST_OPERATIONKINDS_H
15#define LLVM_CLANG_AST_OPERATIONKINDS_H
16
17namespace clang {
18
19/// CastKind - The kind of operation required for a conversion.
21#define CAST_OPERATION(Name) CK_##Name,
22#include "clang/AST/OperationKinds.def"
23};
24
26#define BINARY_OPERATION(Name, Spelling) BO_##Name,
27#include "clang/AST/OperationKinds.def"
28};
29
31#define UNARY_OPERATION(Name, Spelling) UO_##Name,
32#include "clang/AST/OperationKinds.def"
33};
34
35/// The kind of bridging performed by the Objective-C bridge cast.
37 /// Bridging via __bridge, which does nothing but reinterpret
38 /// the bits.
40 /// Bridging via __bridge_transfer, which transfers ownership of an
41 /// Objective-C pointer into ARC.
43 /// Bridging via __bridge_retain, which makes an ARC object available
44 /// as a +1 C pointer.
46};
47
48} // end namespace clang
49
50#endif
The JSON file list parser is used to communicate input to InstallAPI.
BinaryOperatorKind
ObjCBridgeCastKind
The kind of bridging performed by the Objective-C bridge cast.
@ OBC_Bridge
Bridging via __bridge, which does nothing but reinterpret the bits.
@ OBC_BridgeTransfer
Bridging via __bridge_transfer, which transfers ownership of an Objective-C pointer into ARC.
@ OBC_BridgeRetained
Bridging via __bridge_retain, which makes an ARC object available as a +1 C pointer.
UnaryOperatorKind
CastKind
CastKind - The kind of operation required for a conversion.