1 //===- DeclObjCCommon.h - Classes for representing declarations -*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
9 // This file contains common ObjC enums and classes used in AST and
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_CLANG_AST_DECLOBJC_COMMON_H
15 #define LLVM_CLANG_AST_DECLOBJC_COMMON_H
19 /// ObjCPropertyAttribute::Kind - list of property attributes.
20 /// Keep this list in sync with LLVM's Dwarf.h ApplePropertyAttributes.s
21 namespace ObjCPropertyAttribute {
27 kind_readwrite = 0x08,
30 kind_nonatomic = 0x40,
35 kind_unsafe_unretained = 0x800,
36 /// Indicates that the nullability of the type was spelled with a
37 /// property attribute rather than a type qualifier.
38 kind_nullability = 0x1000,
39 kind_null_resettable = 0x2000,
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.
46 } // namespace ObjCPropertyAttribute::Kind
49 /// Number of bits fitting all the property attributes.
50 NumObjCPropertyAttrsBits = 16
55 #endif // LLVM_CLANG_AST_DECLOBJC_COMMON_H