Fix handling unused typedefs in interop

This commit is contained in:
Svyatoslav Scherbina
2017-03-29 10:42:28 +03:00
committed by SvyatoslavScherbina
parent 9ad17f5e48
commit 29fb37bdb8
@@ -285,6 +285,11 @@ internal class NativeIndexImpl(val library: NativeLibrary) : NativeIndex() {
getStructDeclAt(cursor)
}
CXIdxEntity_Typedef -> {
val type = clang_getCursorType(cursor)
getTypedef(type)
}
CXIdxEntity_Function -> {
val name = entityName!!
val returnType = convertType(clang_getCursorResultType(cursor))