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
174 lines
4.7 KiB
Objective-C
174 lines
4.7 KiB
Objective-C
// RUN: rm -rf %t
|
|
// RUN: mkdir %t
|
|
// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -target x86_64-apple-darwin10 %s > %t/out
|
|
// RUN: FileCheck %s < %t/out
|
|
|
|
// Ensure that XML we generate is not invalid.
|
|
// RUN: FileCheck %s -check-prefix=WRONG < %t/out
|
|
// WRONG-NOT: CommentXMLInvalid
|
|
|
|
/**
|
|
* \brief This is a protocol definition
|
|
*/
|
|
@protocol MyProto
|
|
@optional
|
|
/**
|
|
* \brief MethodMyProto method
|
|
* \param[in] anObject input value
|
|
* \param[in] range output value is unsigned int
|
|
* \result return index
|
|
*/
|
|
- (unsigned int)MethodMyProto:(nullable id)anObject inRange:(unsigned int)range;
|
|
/**
|
|
* \brief PropertyMyProto - This is protocol's property.
|
|
*/
|
|
@property (copy, nonnull) id PropertyMyProto;
|
|
/**
|
|
* \brief ClassMethodMyProto
|
|
*/
|
|
+ ClassMethodMyProto;
|
|
@end
|
|
// CHECK: <Declaration>@protocol MyProto\n@end</Declaration>
|
|
// CHECK: <Declaration>- (unsigned int)MethodMyProto:(nullable id)anObject inRange:(unsigned int)range;</Declaration>
|
|
// CHECK: <Declaration>@optional\n@property(atomic, copy, readwrite, nonnull) id PropertyMyProto;</Declaration>
|
|
// CHECK: <Declaration>+ (id)ClassMethodMyProto;</Declaration>
|
|
|
|
/**
|
|
* \brief NSObject is the root class.
|
|
*/
|
|
@interface NSObject {
|
|
/**
|
|
* \brief IvarNSObject
|
|
*/
|
|
id IvarNSObject;
|
|
}
|
|
@end
|
|
// CHECK: Declaration>@interface NSObject {\n id IvarNSObject;\n}\n@end</Declaration>
|
|
// CHECK: <Declaration>id IvarNSObject</Declaration>
|
|
|
|
/**
|
|
* \brief MyClass - primary class.
|
|
*/
|
|
@interface MyClass : NSObject<MyProto>
|
|
{
|
|
/**
|
|
* \brief IvarMyClass - IvarMyClass of values.
|
|
*/
|
|
id IvarMyClass;
|
|
}
|
|
/**
|
|
* \brief MethodMyClass is instance method.
|
|
*/
|
|
- MethodMyClass;
|
|
|
|
/**
|
|
* \brief ClassMethodMyClass is class method.
|
|
*/
|
|
+ ClassMethodMyClass;
|
|
|
|
/**
|
|
* \brief PropertyMyClass - This is class's property.
|
|
*/
|
|
@property (copy) id PropertyMyClass;
|
|
@end
|
|
// CHECK: <Declaration>@interface MyClass : NSObject <MyProto> {\n id IvarMyClass;\n}\n@end</Declaration>
|
|
// CHECK: <Declaration>id IvarMyClass</Declaration>
|
|
// CHECK: <Declaration>- (id)MethodMyClass;</Declaration>
|
|
// CHECK: <Declaration>+ (id)ClassMethodMyClass;</Declaration>
|
|
// CHECK: <Declaration>@property(atomic, copy, readwrite) id PropertyMyClass;</Declaration
|
|
|
|
/**
|
|
* \brief - This is class extension of MyClass
|
|
*/
|
|
@interface MyClass()
|
|
{
|
|
/**
|
|
* \brief IvarMyClassExtension - IvarMyClassExtension private to class extension
|
|
*/
|
|
id IvarMyClassExtension;
|
|
}
|
|
@end
|
|
// CHECK: <Declaration>@interface MyClass () {\n id IvarMyClassExtension;\n}\n@end</Declaration>
|
|
// CHECK: <Declaration>id IvarMyClassExtension</Declaration>
|
|
|
|
|
|
/**
|
|
* \brief MyClass (Category) is private to MyClass.
|
|
*/
|
|
@interface MyClass (Category)
|
|
/**
|
|
* \brief This is private to MyClass
|
|
*/
|
|
- (void)MethodMyClassCategory;
|
|
|
|
/**
|
|
* \brief PropertyMyClassCategory - This is class's private property.
|
|
*/
|
|
@property (copy) id PropertyMyClassCategory;
|
|
@end
|
|
// CHECK: <Declaration>@interface MyClass (Category)\n@end</Declaration>
|
|
// CHECK: <Declaration>- (void)MethodMyClassCategory;</Declaration>
|
|
// CHECK: <Declaration>@property(atomic, copy, readwrite) id PropertyMyClassCategory;</Declaration>
|
|
// CHECK: <Declaration>- (id)PropertyMyClassCategory;</Declaration>
|
|
// CHECK: <Declaration>- (void)setPropertyMyClassCategory:(id)arg;</Declaration>
|
|
|
|
/// @implementation's
|
|
|
|
/**
|
|
* \brief implementation of MyClass class.
|
|
*/
|
|
@implementation MyClass {
|
|
/**
|
|
* \brief IvarPrivateToMyClassImpl.
|
|
*/
|
|
id IvarPrivateToMyClassImpl;
|
|
}
|
|
/**
|
|
* \brief MethodMyClass is instance method implementation.
|
|
*/
|
|
- MethodMyClass {
|
|
return 0;
|
|
}
|
|
|
|
/**
|
|
* \brief ClassMethodMyClass is class method implementation.
|
|
*/
|
|
+ ClassMethodMyClass {
|
|
return 0;
|
|
}
|
|
@end
|
|
// CHECK: <Declaration>@implementation MyClass {\n id IvarPrivateToMyClassImpl;\n id _PropertyMyClass;\n}\n@end</Declaration>
|
|
// CHECK: <Declaration>id IvarPrivateToMyClassImpl</Declaration>
|
|
// CHECK: <Declaration>- (id)MethodMyClass;</Declaration>
|
|
// CHECK: <Declaration>+ (id)ClassMethodMyClass;</Declaration>
|
|
|
|
/**
|
|
* \brief MyClass (Category) is implementation of private to MyClass.
|
|
*/
|
|
@implementation MyClass (Category)
|
|
/**
|
|
* \brief This is private to MyClass
|
|
*/
|
|
- (void)MethodMyClassCategory {}
|
|
/**
|
|
* \brief property getter
|
|
*/
|
|
- (id) PropertyMyClassCategory { return 0; }
|
|
|
|
/**
|
|
* \brief property setter
|
|
*/
|
|
- (void) setPropertyMyClassCategory : (id) arg {}
|
|
@end
|
|
// CHECK: <Declaration>@implementation MyClass (Category)\n@end</Declaration>
|
|
// CHECK: <Declaration>- (void)MethodMyClassCategory;</Declaration>
|
|
// CHECK: <Declaration>- (id)PropertyMyClassCategory;</Declaration>
|
|
// CHECK: <Declaration>- (void)setPropertyMyClassCategory:(id)arg;</Declaration>
|
|
|
|
/**
|
|
* \brief NSObject implementation
|
|
*/
|
|
@implementation NSObject
|
|
@end
|
|
// CHECK: <Declaration>@implementation NSObject\n@end</Declaration>
|