Commit 08eccc7
committed
Remove unneeded swift_name attributes from Objective-C headers
Partial fix for
KT-81447 Native: Objective-C: Excessive 'swift_name' attributes being generated
Removes swift_name attribute from declarations that would already have that swift name.
Initially focusing on properties and and simple methods that have no parameters.
The excessive use of swift_attributes creates large headers, and even larger pcm files
generated from those headers.1 parent 3bff839 commit 08eccc7
File tree
155 files changed
+1935
-2186
lines changed- kotlin-native/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/objcexport
- native/objcexport-header-generator
- impl
- analysis-api
- src/org/jetbrains/kotlin/objcexport
- analysisApiUtils
- mangling
- test/org/jetbrains/kotlin/objcexport/tests/mangling
- k1
- src/org/jetbrains/kotlin/backend/konan/objcexport
- test/org/jetbrains/kotlin/backend/konan/tests
- src/org/jetbrains/kotlin/backend/konan/objcexport
- testData
- dependencies
- arrayList
- array
- classNameMangling
- completionCoroutinesHandlerException
- coroutineDispatcherKey
- dateTimeUnit
- exportedAndNotExportedDependency
- extensionsLibrary
- implementIterator
- iterator
- jsonNamingStrategy
- kotlinxCoroutines
- kotlinxDatetime
- kotlinxSerializationCore
- kotlinxSerializationJson
- mapLikeSerializer
- notExportedDependency
- oneTypeExtensionsFromMultipleFilesMergedIntoTheSameCategory
- propertyAnnotation
- propertyWithCompanionTypeFromDependency
- serializersModule
- stringBuilder
- suspendHandlerTranslatedAsResultAndErrorParameters
- topLevelFunctionAndExtensionWithDependency
- headers
- anonymousFunctions
- anyMethodsOverride
- basicConstructorWithUpperBoundParameters
- basicGenericsInAndOut
- basicMethodParameterWithUpperBound
- blockWithExplicitParameterNames
- blockWithNoParameterNames
- cProperties
- classAndExtensionFunctionInSameFile
- classExtendsAbstractClass
- classImplementingInterface
- classReferencingDependencyClassAsReturnType
- classReferencingOtherClassAsReturnType
- classTypePropertyTranslation
- classWithGenerics
- classWithHidesFromObjCAnnotation
- classWithKDoc
- classWithManyMembers
- classWithMustBeDocumentedAnnotation
- classWithObjCNameAnnotation
- classWithReservedName
- classWithUnresolvedSuperTypeGenerics
- classWithUnresolvedSuperType
- classifiersAnnotatedWithObjCName
- collectionTypeArguments
- companion
- constructors
- deprecatedHidden
- deprecatedWarningAndError
- dispatchAndExtensionReceiverWithMustBeDocumentedAnnotation
- emptyTopLevelFacades
- enumCKeywordsAndSpecialNamesTranslation
- extensionFunctions
- extensionOfPrimitiveType
- extensionOrder
- extensionProperties
- extensionsMangling
- frameworkNameWithObjCNameAndExact
- functionWithErrorTypeAndFrameworkName
- functionWithErrorType
- functionWithObjCNameAnnotation
- functionWithReservedMethodNameAndReturnType
- functionWithReservedMethodName
- functionWithThrowsAnnotation
- functionsAnnotatedWithObjCName
- genericExtensionPropertyIsNotTranslatedAsStaticOne
- genericSuperType
- illegalStateException
- innerClassWithExtensionFunction
- innerClass
- interfaceExtension
- interfaceImplementingInterface
- interfaceReferencingOtherInterfaceAsReturnType
- internalPublicApi
- kdocWithBlockTags
- kotlinUnitIsForwarded
- mangleGenerics
- mangleInitConstructors
- mangleProperty
- mangleThrowsAnnotation
- manyClassesAndInterfaces
- memberFunctionSignatureOrder
- methodWithMultipleTypeParameters
- methodWithMultipleUpperBoundsParameters
- multipleInheritance
- multipleInterfacesImplementationChain
- nestedClassWithFrameworkName
- nestedClass
- nestedGenericClass
- nothing
- nullableFunctionalTypeArgumentsAndReturnTypesTranslated
- objCEntryPoints
- objectWithGenericSuperclass
- objectWithReservedName
- parameterWithMustBeDocumentedAnnotation
- privateCompanion
- privateGenericSuperInterface
- privateSuperInterfaceWithCovariantOverride
- privateSuperInterface
- privateTopLevelClassProperty
- propertiesAnnotatedWithObjCName
- propertyGetter
- releaseKeywordAsMethodName
- samInterface
- sameClassNameInDifferentPackage
- sameFunctionNameInDifferentClass
- sameFunctionNameInDifferentInterface
- samePropertyAndFunctionName
- simpleClass
- simpleDataClass
- simpleEnumClass
- simpleInterface
- simpleObject
- sinceVersionAnnotation
- sourceFileWithDotInName
- specialFunctionNamesExplicitMethodFamily
- specialFunctionNames
- subclassParameterTypeTranslationWithoutUpperBound
- superClassExtensionsMangling
- superClassWithCovariantOverride
- suspendFunction
- throwable
- topLevelFunctionWithNumberReturn
- topLevelFunction
- topLevelProperty
- varWithPrivateSetterTranslatedAsImmutableProperty
- vararg
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
155 files changed
+1935
-2186
lines changedLines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| |||
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
136 | | - | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
Lines changed: 27 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
41 | 49 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
| 50 | + | |
53 | 51 | | |
54 | 52 | | |
Lines changed: 10 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | | - | |
| 22 | + | |
24 | 23 | | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | | - | |
30 | | - | |
| 28 | + | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
35 | 33 | | |
36 | 34 | | |
37 | | - | |
| 35 | + | |
38 | 36 | | |
39 | 37 | | |
40 | | - | |
41 | | - | |
| 38 | + | |
| 39 | + | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 46 | | |
Lines changed: 64 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | 30 | | |
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
37 | | - | |
| 35 | + | |
38 | 36 | | |
39 | 37 | | |
40 | 38 | | |
| |||
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
50 | | - | |
| 48 | + | |
51 | 49 | | |
52 | 50 | | |
53 | 51 | | |
| 52 | + | |
54 | 53 | | |
55 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
0 commit comments