[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:
+24
@@ -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,
|
||||
;
|
||||
}
|
||||
Reference in New Issue
Block a user