
Summary: This allows libclang to access the actual names of property setters and getters without needing to go through the indexer API. Usually default names are used, but the property can specify a different name. Reviewers: yvvan, jbcoe Reviewed By: yvvan Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D49634 llvm-svn: 338816
11 lines
554 B
Objective-C
11 lines
554 B
Objective-C
@interface Foo
|
|
@property (assign,readwrite,getter=b,setter=c:) id a;
|
|
@property (assign,readonly,getter=e) id d;
|
|
@property (assign,readwrite) id f;
|
|
@end
|
|
|
|
// RUN: c-index-test -test-print-type-declaration %s | FileCheck %s
|
|
// CHECK: ObjCPropertyDecl=a:2:52 [getter,assign,readwrite,setter,] (getter=b) (setter=c:) [typedeclaration=id] [typekind=ObjCId]
|
|
// CHECK: ObjCPropertyDecl=d:3:41 [readonly,getter,assign,] (getter=e) [typedeclaration=id] [typekind=ObjCId]
|
|
// CHECK: ObjCPropertyDecl=f:4:33 [assign,readwrite,] [typedeclaration=id] [typekind=ObjCId]
|