clang 20.0.0git
DeclObjCCommon.h
Go to the documentation of this file.
1//===- DeclObjCCommon.h - Classes for representing declarations -*- 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 contains common ObjC enums and classes used in AST and
10// Sema.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_CLANG_AST_DECLOBJCCOMMON_H
15#define LLVM_CLANG_AST_DECLOBJCCOMMON_H
16
17namespace clang {
18
19/// ObjCPropertyAttribute::Kind - list of property attributes.
20/// Keep this list in sync with LLVM's Dwarf.h ApplePropertyAttributes.s
21namespace ObjCPropertyAttribute {
22enum Kind {
29 kind_copy = 0x20,
32 kind_atomic = 0x100,
33 kind_weak = 0x200,
34 kind_strong = 0x400,
36 /// Indicates that the nullability of the type was spelled with a
37 /// property attribute rather than a type qualifier.
40 kind_class = 0x4000,
41 kind_direct = 0x8000,
42 // Adding a property should change NumObjCPropertyAttrsBits
43 // Also, don't forget to update the Clang C API at CXObjCPropertyAttrKind and
44 // clang_Cursor_getObjCPropertyAttributes.
45};
46} // namespace ObjCPropertyAttribute::Kind
47
48enum {
49 /// Number of bits fitting all the property attributes.
51};
52
53} // namespace clang
54
55#endif // LLVM_CLANG_AST_DECLOBJCCOMMON_H
@ kind_nullability
Indicates that the nullability of the type was spelled with a property attribute rather than a type q...
The JSON file list parser is used to communicate input to InstallAPI.
@ NumObjCPropertyAttrsBits
Number of bits fitting all the property attributes.