Changeset View
Changeset View
Standalone View
Standalone View
test/Index/complete-properties.m
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | |||||
// CHECK-CC3: ObjCIvarDecl:{ResultType int}{TypedText RandomIVar} (35) | // CHECK-CC3: ObjCIvarDecl:{ResultType int}{TypedText RandomIVar} (35) | ||||
// CHECK-CC3: ObjCIvarDecl:{ResultType id}{TypedText StoredProp3} (8) | // CHECK-CC3: ObjCIvarDecl:{ResultType id}{TypedText StoredProp3} (8) | ||||
// RUN: c-index-test -code-completion-at=%s:21:10 %s | FileCheck -check-prefix=CHECK-CC4 %s | // RUN: c-index-test -code-completion-at=%s:21:10 %s | FileCheck -check-prefix=CHECK-CC4 %s | ||||
// CHECK-CC4: ObjCPropertyDecl:{ResultType int}{TypedText Prop0} | // CHECK-CC4: ObjCPropertyDecl:{ResultType int}{TypedText Prop0} | ||||
// CHECK-CC4-NEXT: ObjCPropertyDecl:{ResultType id}{TypedText Prop4} | // CHECK-CC4-NEXT: ObjCPropertyDecl:{ResultType id}{TypedText Prop4} | ||||
// RUN: c-index-test -code-completion-at=%s:29:13 %s | FileCheck -check-prefix=CHECK-CC5 %s | // RUN: c-index-test -code-completion-at=%s:29:13 %s | FileCheck -check-prefix=CHECK-CC5 %s | ||||
// CHECK-CC5: ObjCPropertyDecl:{ResultType int}{TypedText Prop0} (35) | // CHECK-CC5: ObjCPropertyDecl:{ResultType int}{TypedText Prop0} (37) | ||||
// CHECK-CC5-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText Prop1} (35) | // CHECK-CC5-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText Prop1} (37) | ||||
// CHECK-CC5-NEXT: ObjCPropertyDecl:{ResultType float}{TypedText Prop2} (35) | // CHECK-CC5-NEXT: ObjCPropertyDecl:{ResultType float}{TypedText Prop2} (37) | ||||
// CHECK-CC5-NEXT: ObjCPropertyDecl:{ResultType id}{TypedText Prop3} (35) | // CHECK-CC5-NEXT: ObjCPropertyDecl:{ResultType id}{TypedText Prop3} (35) | ||||
// CHECK-CC5-NEXT: ObjCPropertyDecl:{ResultType id}{TypedText Prop4} (35) | // CHECK-CC5-NEXT: ObjCPropertyDecl:{ResultType id}{TypedText Prop4} (37) | ||||
// RUN: c-index-test -code-completion-at=%s:9:11 %s | FileCheck -check-prefix=CHECK-CC6 %s | // RUN: c-index-test -code-completion-at=%s:9:11 %s | FileCheck -check-prefix=CHECK-CC6 %s | ||||
// CHECK-CC6: ObjCInterfaceDecl:{TypedText MyClass} (50) | // CHECK-CC6: ObjCInterfaceDecl:{TypedText MyClass} (50) | ||||
// RUN: c-index-test -code-completion-at=%s:45:21 -fobjc-nonfragile-abi %s | FileCheck -check-prefix=CHECK-CC7 %s | // RUN: c-index-test -code-completion-at=%s:45:21 -fobjc-nonfragile-abi %s | FileCheck -check-prefix=CHECK-CC7 %s | ||||
// CHECK-CC7-NOT: ObjCIvarDecl:{ResultType id}{TypedText _Prop2} | // CHECK-CC7-NOT: ObjCIvarDecl:{ResultType id}{TypedText _Prop2} | ||||
// CHECK-CC7: ObjCIvarDecl:{ResultType I4 *}{TypedText Prop1} (17) | // CHECK-CC7: ObjCIvarDecl:{ResultType I4 *}{TypedText Prop1} (17) | ||||
// CHECK-CC7: ObjCIvarDecl:{ResultType id}{TypedText Prop2_} (7) | // CHECK-CC7: ObjCIvarDecl:{ResultType id}{TypedText Prop2_} (7) | ||||
// RUN: c-index-test -code-completion-at=%s:57:13 -fobjc-nonfragile-abi %s | FileCheck -check-prefix=CHECK-CC8 %s | // RUN: c-index-test -code-completion-at=%s:57:13 -fobjc-nonfragile-abi %s | FileCheck -check-prefix=CHECK-CC8 %s | ||||
// CHECK-CC8: ObjCPropertyDecl:{ResultType int}{TypedText Prop5} (35) | // CHECK-CC8: ObjCPropertyDecl:{ResultType int}{TypedText Prop5} (37) | ||||
@interface ClassProperties | @interface ClassProperties | ||||
@property int instanceProperty; | @property int instanceProperty; | ||||
@property(class) int explicit; | @property(class) int explicit; | ||||
@property(class, readonly) int explicitReadonly; | @property(class, readonly) int explicitReadonly; | ||||
+ (int)implicit; | + (int)implicit; | ||||
▲ Show 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | |||||
// CHECK-CC9-NEXT: ObjCClassMethodDecl:{ResultType int}{TypedText implicitInCategory} (37) | // CHECK-CC9-NEXT: ObjCClassMethodDecl:{ResultType int}{TypedText implicitInCategory} (37) | ||||
// CHECK-CC9-NEXT: ObjCClassMethodDecl:{ResultType int}{TypedText implicitReadonly} (37) | // CHECK-CC9-NEXT: ObjCClassMethodDecl:{ResultType int}{TypedText implicitReadonly} (37) | ||||
// CHECK-CC9-NEXT: ObjCClassMethodDecl:{ResultType int}{TypedText shadowedImplicit} (37) | // CHECK-CC9-NEXT: ObjCClassMethodDecl:{ResultType int}{TypedText shadowedImplicit} (37) | ||||
// CHECK-CC9-NOT: implicitInstance | // CHECK-CC9-NOT: implicitInstance | ||||
// CHECK-CC9-NOT: noProperty | // CHECK-CC9-NOT: noProperty | ||||
// CHECK-CC9-NOT: instanceProperty | // CHECK-CC9-NOT: instanceProperty | ||||
// RUN: c-index-test -code-completion-at=%s:145:28 -fobjc-nonfragile-abi %s | FileCheck -check-prefix=CHECK-CC10 %s | // RUN: c-index-test -code-completion-at=%s:145:28 -fobjc-nonfragile-abi %s | FileCheck -check-prefix=CHECK-CC10 %s | ||||
// CHECK-CC10: ObjCPropertyDecl:{ResultType int}{TypedText explicit} (35) | // CHECK-CC10: ObjCPropertyDecl:{ResultType int}{TypedText explicit} (37) | ||||
// CHECK-CC10-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText explicitInProtocol} (35) | // CHECK-CC10-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText explicitInProtocol} (37) | ||||
// CHECK-CC10-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText explicitReadonly} (35) | // CHECK-CC10-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText explicitReadonly} (37) | ||||
// CHECK-CC10-NEXT: ObjCClassMethodDecl:{ResultType int}{TypedText implicit} (37) | // CHECK-CC10-NEXT: ObjCClassMethodDecl:{ResultType int}{TypedText implicit} (39) | ||||
// CHECK-CC10-NEXT: ObjCClassMethodDecl:{ResultType int}{TypedText implicitInCategory} (37) | // CHECK-CC10-NEXT: ObjCClassMethodDecl:{ResultType int}{TypedText implicitInCategory} (39) | ||||
// CHECK-CC10-NEXT: ObjCClassMethodDecl:{ResultType int}{TypedText implicitReadonly} (37) | // CHECK-CC10-NEXT: ObjCClassMethodDecl:{ResultType int}{TypedText implicitReadonly} (39) | ||||
// CHECK-CC10-NEXT: ObjCPropertyDecl:{ResultType ClassProperties *}{TypedText shadowedImplicit} (35) | // CHECK-CC10-NEXT: ObjCPropertyDecl:{ResultType ClassProperties *}{TypedText shadowedImplicit} (35) | ||||
// CHECK-CC10-NOT: implicitInstance | // CHECK-CC10-NOT: implicitInstance | ||||
// CHECK-CC10-NOT: noProperty | // CHECK-CC10-NOT: noProperty | ||||
// CHECK-CC10-NOT: instanceProperty | // CHECK-CC10-NOT: instanceProperty | ||||
// RUN: c-index-test -code-completion-at=%s:138:9 -fobjc-nonfragile-abi %s | FileCheck -check-prefix=CHECK-CC11 %s | // RUN: c-index-test -code-completion-at=%s:138:9 -fobjc-nonfragile-abi %s | FileCheck -check-prefix=CHECK-CC11 %s | ||||
// CHECK-CC11-NOT: explicit | // CHECK-CC11-NOT: explicit | ||||
// CHECK-CC11-NOT: explicitReadonly | // CHECK-CC11-NOT: explicitReadonly | ||||
// CHECK-CC11-NOT: implicit | // CHECK-CC11-NOT: implicit | ||||
// CHECK-CC11-NOT: implicitReadonly | // CHECK-CC11-NOT: implicitReadonly | ||||
// CHECK-CC11-NOT: shadowedImplicit | // CHECK-CC11-NOT: shadowedImplicit | ||||
// CHECK-CC11-NOT: implicitInCategory | // CHECK-CC11-NOT: implicitInCategory |