diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-05-01 17:28:37 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-05-01 17:28:37 +0000 |
commit | db1519a95687622d08340f9b7522ef84a53b331a (patch) | |
tree | 9391b82d2dfc1fea8a76201e290a7ff0fb9f51b2 /test | |
parent | 78a2a5a17a907aec58ae6b564607de4202dee0c6 (diff) |
[ObjC declaration documentation] declaration of
types involving Objective-C pointers must have
their arc qualifiers elided as they don't
add any additional info. // rdar://13757500.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180860 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Index/comment-unqualified-objc-pointer.m | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/Index/comment-unqualified-objc-pointer.m b/test/Index/comment-unqualified-objc-pointer.m new file mode 100644 index 0000000000..5d48eb0ae2 --- /dev/null +++ b/test/Index/comment-unqualified-objc-pointer.m @@ -0,0 +1,36 @@ +// 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 -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 *)label; +// CHECK: <Declaration>- (NSString *)WithLabel:(NSString *)label;</Declaration> + +//! This is a property to get the Name. +@property (copy) NSString *Name; +// CHECK: <Declaration>@property(readwrite, copy, atomic) NSString *Name;</Declaration> +@end + +@implementation NSMutableArray +{ +//! This is private ivar + NSString *NickName; +// CHECK: <Declaration>NSString *NickName</Declaration> +} + +- (NSString *)WithLabel:(NSString *)label { + return 0; +} +@synthesize Name = Name; +@end |