[K/N] Add binary option to produce error on mangled objc names (#5264)

objcExportErrorOnNameCollisions=true binary option makes the compiler
emit an error whenever it mangles a name emitted by ObjCExport.

^KT-65863 Fixed
This commit is contained in:
Mark Mann
2024-02-16 18:17:30 +00:00
committed by Space Team
parent 0f8a416496
commit 00ef313df2
8 changed files with 129 additions and 26 deletions
@@ -0,0 +1,24 @@
/*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.backend.konan
enum class ObjCExportNameCollisionMode {
/*
* In this mode, exported ObjC symbol name collisions will not produce any compiler output.
*/
NONE,
/*
* In this mode, exported ObjC symbol name collisions will produce a compiler warning.
*/
WARNING,
/*
* In this mode, exported ObjC symbol name collisions will produce a compiler error.
*/
ERROR,
;
}