CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
78 lines
2.5 KiB
Objective-C
78 lines
2.5 KiB
Objective-C
/* Note: the RUN lines are near the end of the file, since line/column
|
|
matter for this test. */
|
|
|
|
@protocol MyProtocol
|
|
@property float ProtoProp;
|
|
@end
|
|
|
|
@interface Super {
|
|
int SuperIVar;
|
|
}
|
|
@end
|
|
@interface Int : Super<MyProtocol>
|
|
{
|
|
int IVar;
|
|
}
|
|
|
|
@property int prop1;
|
|
@end
|
|
|
|
void test_props(Int* ptr) {
|
|
ptr.prop1 = 0;
|
|
ptr->IVar = 0;
|
|
}
|
|
|
|
@interface Sub : Int
|
|
@property int myProp;
|
|
|
|
- (int)myProp;
|
|
- (int)myOtherPropLikeThing;
|
|
- (int)myOtherNonPropThing:(int)value;
|
|
@end
|
|
|
|
int test_more_props(Sub *s) {
|
|
return s.myOtherPropLikeThing;
|
|
}
|
|
|
|
@interface Other
|
|
@property Sub *sub;
|
|
@end
|
|
|
|
int test_two_levels(Other *other) {
|
|
return other.sub.myProp;
|
|
}
|
|
|
|
// RUN: c-index-test -code-completion-at=%s:21:7 %s | FileCheck -check-prefix=CHECK-CC1 %s
|
|
// CHECK-CC1: ObjCPropertyDecl:{ResultType int}{TypedText prop1}
|
|
// CHECK-CC1: ObjCPropertyDecl:{ResultType float}{TypedText ProtoProp}
|
|
// CHECK-CC1: Completion contexts:
|
|
// CHECK-CC1-NEXT: Objective-C property access
|
|
// CHECK-CC1-NEXT: Container Kind: ObjCInterfaceDecl
|
|
// CHECK-CC1-NEXT: Container is complete
|
|
// CHECK-CC1-NEXT: Container USR: c:objc(cs)Int
|
|
// RUN: c-index-test -code-completion-at=%s:22:8 %s | FileCheck -check-prefix=CHECK-CC2 %s
|
|
// CHECK-CC2: ObjCIvarDecl:{ResultType int}{TypedText IVar} (35)
|
|
// CHECK-CC2: ObjCIvarDecl:{ResultType int}{TypedText SuperIVar} (37)
|
|
// CHECK-CC2: Completion contexts:
|
|
// CHECK-CC2-NEXT: Arrow member access
|
|
// CHECK-CC2-NEXT: Container Kind: ObjCInterfaceDecl
|
|
// CHECK-CC2-NEXT: Container is complete
|
|
// CHECK-CC2-NEXT: Container USR: c:objc(cs)Int
|
|
// RUN: c-index-test -code-completion-at=%s:34:12 %s | FileCheck -check-prefix=CHECK-CC3 %s
|
|
// CHECK-CC3: ObjCInstanceMethodDecl:{ResultType int}{TypedText myOtherPropLikeThing} (37)
|
|
// CHECK-CC3: ObjCPropertyDecl:{ResultType int}{TypedText myProp} (35)
|
|
// CHECK-CC3: ObjCPropertyDecl:{ResultType int}{TypedText prop1} (37)
|
|
// CHECK-CC3: ObjCPropertyDecl:{ResultType float}{TypedText ProtoProp} (37)
|
|
// CHECK-CC3: Completion contexts:
|
|
// CHECK-CC3-NEXT: Objective-C property access
|
|
// CHECK-CC3-NEXT: Container Kind: ObjCInterfaceDecl
|
|
// CHECK-CC3-NEXT: Container is complete
|
|
// CHECK-CC3-NEXT: Container USR: c:objc(cs)Sub
|
|
|
|
// RUN: c-index-test -code-completion-at=%s:42:20 %s | FileCheck -check-prefix=CHECK-CC4 %s
|
|
// CHECK-CC4: ObjCInstanceMethodDecl:{ResultType int}{TypedText myOtherPropLikeThing} (37)
|
|
// CHECK-CC4-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText myProp} (35)
|
|
// CHECK-CC4-NEXT: ObjCPropertyDecl:{ResultType int}{TypedText prop1} (37)
|
|
// CHECK-CC4-NEXT: ObjCPropertyDecl:{ResultType float}{TypedText ProtoProp} (37)
|
|
|