annotate clang/test/AST/ast-print-objc-property.m @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -ast-print %s -o - | FileCheck %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 @interface NSObject
anatofuz
parents:
diff changeset
4 @end
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 @interface Properties : NSObject
anatofuz
parents:
diff changeset
7 @property(class) int classFoo;
anatofuz
parents:
diff changeset
8 @property(nonatomic) int atomicBar;
anatofuz
parents:
diff changeset
9 @property(readonly) int readonlyConstant;
anatofuz
parents:
diff changeset
10 @property(retain, nonatomic, setter=my_setter:, getter=my_getter) id __crazy_name;
anatofuz
parents:
diff changeset
11 @property(nonatomic, strong, nullable) NSObject * objProperty;
anatofuz
parents:
diff changeset
12 @property(nonatomic, weak, null_resettable) NSObject * weakObj;
anatofuz
parents:
diff changeset
13 @property(nonatomic, copy, nonnull) NSObject * copyObj;
anatofuz
parents:
diff changeset
14 @end
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 // CHECK: @property(class, atomic, assign, unsafe_unretained, readwrite) int classFoo;
anatofuz
parents:
diff changeset
17 // CHECK: @property(nonatomic, assign, unsafe_unretained, readwrite) int atomicBar;
anatofuz
parents:
diff changeset
18 // CHECK: @property(atomic, readonly) int readonlyConstant;
anatofuz
parents:
diff changeset
19 // CHECK: @property(nonatomic, retain, readwrite, getter = my_getter, setter = my_setter:) id __crazy_name;
anatofuz
parents:
diff changeset
20 // CHECK: @property(nonatomic, strong, readwrite, nullable) NSObject *objProperty;
anatofuz
parents:
diff changeset
21 // CHECK: @property(nonatomic, weak, readwrite, null_resettable) NSObject *weakObj;
anatofuz
parents:
diff changeset
22 // CHECK: @property(nonatomic, copy, readwrite, nonnull) NSObject *copyObj;