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
49 lines
1.7 KiB
Objective-C
49 lines
1.7 KiB
Objective-C
// RUN: c-index-test -test-load-source local %s | FileCheck %s
|
|
|
|
// The method 'bar' was also being reported outside the @implementation
|
|
|
|
@interface Foo {
|
|
id x;
|
|
}
|
|
- (id) bar;
|
|
@end
|
|
|
|
@implementation Foo
|
|
- (id) bar {
|
|
return 0;
|
|
}
|
|
@end
|
|
|
|
@protocol Prot8380046
|
|
@end
|
|
|
|
@interface R8380046
|
|
@end
|
|
|
|
@interface R8380046 () <Prot8380046>
|
|
@end
|
|
|
|
@class NSString;
|
|
|
|
void test() {
|
|
NSString *s = @"objc str";
|
|
}
|
|
|
|
// CHECK: local-symbols.m:5:12: ObjCInterfaceDecl=Foo:5:12 Extent=[5:1 - 9:5]
|
|
// CHECK: local-symbols.m:6:6: ObjCIvarDecl=x:6:6 (Definition) Extent=[6:3 - 6:7]
|
|
// CHECK: local-symbols.m:6:3: TypeRef=id:0:0 Extent=[6:3 - 6:5]
|
|
// CHECK: local-symbols.m:8:8: ObjCInstanceMethodDecl=bar:8:8 Extent=[8:1 - 8:12]
|
|
// CHECK: local-symbols.m:8:4: TypeRef=id:0:0 Extent=[8:4 - 8:6]
|
|
// CHECK: local-symbols.m:11:17: ObjCImplementationDecl=Foo:11:17 (Definition) Extent=[11:1 - 15:2]
|
|
// CHECK: local-symbols.m:12:8: ObjCInstanceMethodDecl=bar:12:8 (Definition) Extent=[12:1 - 14:2]
|
|
// CHECK: local-symbols.m:12:4: TypeRef=id:0:0 Extent=[12:4 - 12:6]
|
|
// CHECK: local-symbols.m:13:10: UnexposedExpr= Extent=[13:10 - 13:11]
|
|
// CHECK: local-symbols.m:13:10: IntegerLiteral= Extent=[13:10 - 13:11]
|
|
// CHECK: local-symbols.m:17:11: ObjCProtocolDecl=Prot8380046:17:11 (Definition) Extent=[17:1 - 18:5]
|
|
// CHECK: local-symbols.m:20:12: ObjCInterfaceDecl=R8380046:20:12 Extent=[20:1 - 21:5]
|
|
// CHECK: local-symbols.m:23:12: ObjCCategoryDecl=:23:12 Extent=[23:1 - 24:5]
|
|
// CHECK: local-symbols.m:23:12: ObjCClassRef=R8380046:20:12 Extent=[23:12 - 23:20]
|
|
// CHECK: local-symbols.m:23:25: ObjCProtocolRef=Prot8380046:17:11 Extent=[23:25 - 23:36]
|
|
|
|
// CHECK: local-symbols.m:29:17: ObjCStringLiteral="objc str" Extent=[29:17 - 29:28]
|