mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00

Summary: - `@property(attr, attr2)` instead of `@property ( attr,attr2 )`. - Change priority of attributes (see code/comments inline). - Support for printing weak and unsafe_unretained attributes. Subscribers: arphaman, jfb, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D57965 llvm-svn: 357937
37 lines
940 B
Objective-C
37 lines
940 B
Objective-C
// RUN: rm -rf %t
|
|
// RUN: mkdir %t
|
|
// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -target x86_64-apple-darwin10 -fobjc-arc %s > %t/out
|
|
// RUN: FileCheck %s < %t/out
|
|
// rdar://13757500
|
|
|
|
@class NSString;
|
|
|
|
@interface NSArray @end
|
|
|
|
@interface NSMutableArray : NSArray
|
|
{
|
|
//! This is the name.
|
|
NSString *Name;
|
|
}
|
|
//! This is WithLabel comment.
|
|
- (NSString *)WithLabel:(NSString * const)label;
|
|
// CHECK: <Declaration>- (NSString *)WithLabel:(NSString *const)label;</Declaration>
|
|
|
|
//! This is a property to get the Name.
|
|
@property (copy) NSString *Name;
|
|
// CHECK: <Declaration>@property(atomic, copy, readwrite) NSString *Name;</Declaration>
|
|
@end
|
|
|
|
@implementation NSMutableArray
|
|
{
|
|
//! This is private ivar
|
|
NSString *NickName;
|
|
// CHECK: <Declaration>NSString *NickName</Declaration>
|
|
}
|
|
|
|
- (NSString *)WithLabel:(NSString * const)label {
|
|
return 0;
|
|
}
|
|
@synthesize Name = Name;
|
|
@end
|