xref: /llvm-project/clang/test/Index/comment-unqualified-objc-pointer.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: rm -rf %t
2// RUN: mkdir %t
3// 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
4// RUN: FileCheck %s < %t/out
5
6@class NSString;
7
8@interface NSArray @end
9
10@interface NSMutableArray : NSArray
11{
12//! This is the name.
13  NSString *Name;
14}
15//! This is WithLabel comment.
16- (NSString *)WithLabel:(NSString * const)label;
17// CHECK: <Declaration>- (NSString *)WithLabel:(NSString *const)label;</Declaration>
18
19//! This is a property to get the Name.
20@property (copy) NSString *Name;
21// CHECK: <Declaration>@property(atomic, copy, readwrite) NSString *Name;</Declaration>
22@end
23
24@implementation NSMutableArray
25{
26//! This is private ivar
27  NSString *NickName;
28// CHECK: <Declaration>NSString *NickName</Declaration>
29}
30
31- (NSString *)WithLabel:(NSString * const)label {
32    return 0;
33}
34@synthesize Name = Name;
35@end
36