From ad8d4051b85affd93234e1ec8aff395e09bb3f42 Mon Sep 17 00:00:00 2001 From: Sebastian Sellmair Date: Mon, 8 Jan 2024 13:18:20 +0100 Subject: [PATCH] [ObjCExport] Fix tests with missing 'MustBeDocumented' annotations missing KT-64226 --- .../backend.native/tests/objcexport/expectedLazy.h | 12 ++++++++++++ .../tests/objcexport/expectedLazyLegacySuspendUnit.h | 12 ++++++++++++ .../tests/objcexport/expectedLazyNoGenerics.h | 12 ++++++++++++ 3 files changed, 36 insertions(+) diff --git a/kotlin-native/backend.native/tests/objcexport/expectedLazy.h b/kotlin-native/backend.native/tests/objcexport/expectedLazy.h index 2632d5aa081..5d013575d44 100644 --- a/kotlin-native/backend.native/tests/objcexport/expectedLazy.h +++ b/kotlin-native/backend.native/tests/objcexport/expectedLazy.h @@ -1202,11 +1202,23 @@ __attribute__((swift_name("KT49937"))) - (NSString *)description __attribute__((swift_name("description()"))); @end + +/** + * @note annotations + * Foo + * BugReport(assignedTo="me", status="open") +*/ __attribute__((swift_name("MyInterface"))) @protocol KtMyInterface @required @end + +/** + * @note annotations + * Foo + * BugReport(assignedTo="me", status="open") +*/ __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Bar"))) @interface KtBar : KtBase diff --git a/kotlin-native/backend.native/tests/objcexport/expectedLazyLegacySuspendUnit.h b/kotlin-native/backend.native/tests/objcexport/expectedLazyLegacySuspendUnit.h index 7f41c363fac..f21f3a44d74 100644 --- a/kotlin-native/backend.native/tests/objcexport/expectedLazyLegacySuspendUnit.h +++ b/kotlin-native/backend.native/tests/objcexport/expectedLazyLegacySuspendUnit.h @@ -1202,11 +1202,23 @@ __attribute__((swift_name("KT49937"))) - (NSString *)description __attribute__((swift_name("description()"))); @end + +/** + * @note annotations + * Foo + * BugReport(assignedTo="me", status="open") +*/ __attribute__((swift_name("MyInterface"))) @protocol KtMyInterface @required @end + +/** + * @note annotations + * Foo + * BugReport(assignedTo="me", status="open") +*/ __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Bar"))) @interface KtBar : KtBase diff --git a/kotlin-native/backend.native/tests/objcexport/expectedLazyNoGenerics.h b/kotlin-native/backend.native/tests/objcexport/expectedLazyNoGenerics.h index 42319374a87..157d4079f24 100644 --- a/kotlin-native/backend.native/tests/objcexport/expectedLazyNoGenerics.h +++ b/kotlin-native/backend.native/tests/objcexport/expectedLazyNoGenerics.h @@ -1202,11 +1202,23 @@ __attribute__((swift_name("KT49937"))) - (NSString *)description __attribute__((swift_name("description()"))); @end + +/** + * @note annotations + * Foo + * BugReport(assignedTo="me", status="open") +*/ __attribute__((swift_name("MyInterface"))) @protocol KtMyInterface @required @end + +/** + * @note annotations + * Foo + * BugReport(assignedTo="me", status="open") +*/ __attribute__((objc_subclassing_restricted)) __attribute__((swift_name("Bar"))) @interface KtBar : KtBase