Fix name clashes between struct and typedef in interop

This commit is contained in:
Svyatoslav Scherbina
2017-07-14 17:57:26 +03:00
committed by SvyatoslavScherbina
parent cf8fea5711
commit 0f20feb544
@@ -80,7 +80,8 @@ class StubGenerator(
val forbiddenStructNames = run {
val functionNames = nativeIndex.functions.map { it.name }
val fieldNames = nativeIndex.structs.mapNotNull { it.def }.flatMap { it.fields }.map { it.name }
(functionNames + fieldNames).toSet() + keywords
val typedefNames = nativeIndex.typedefs.map { it.name }
(functionNames + fieldNames + typedefNames).toSet()
}
val StructDecl.isAnonymous: Boolean