You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
913 B
39 lines
913 B
3 years ago
|
/*
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*/
|
||
|
|
||
|
#import <Foundation/NSObject.h>
|
||
|
|
||
|
struct MyStruct {
|
||
|
int* i;
|
||
|
};
|
||
|
|
||
|
@protocol P
|
||
|
|
||
|
@property(assign) NSNumber* shouldReport1;
|
||
|
|
||
|
@property(atomic, assign) NSObject* shouldReport2;
|
||
|
|
||
|
@property(assign) id shouldReport3; // id's are pointers to Obj-C objects
|
||
|
|
||
|
@property(assign) int shouldNotReport1;
|
||
|
|
||
|
@property(atomic, assign) int shouldNotReport2;
|
||
|
|
||
|
@property(atomic, strong) NSNumber* shouldNotReport3;
|
||
|
|
||
|
@property(atomic) NSNumber* shouldNotReport4; // strong is the default attribute
|
||
|
|
||
|
@property(assign) int* shouldNotReport5; // assign for not-Obj-C pointers is ok
|
||
|
|
||
|
@property(assign) void* shouldNotReport6;
|
||
|
|
||
|
@property(assign) struct MyStruct* shouldNotReport7;
|
||
|
|
||
|
@property(nonatomic, assign, nullable) NSNumber* shouldReport8;
|
||
|
|
||
|
@end
|