Skip to content
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.

Commit

Permalink
Fix typedefs to unsupported types
Browse files Browse the repository at this point in the history
  • Loading branch information
olonho committed Sep 5, 2017
1 parent 5289be4 commit be58d2e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ internal class NativeIndexImpl(val library: NativeLibrary) : NativeIndex() {
val name = getCursorSpelling(declCursor)

val underlying = convertType(clang_getTypedefDeclUnderlyingType(declCursor))

if (underlying == UnsupportedType) return underlying

if (clang_getCursorLexicalParent(declCursor).kind != CXCursorKind.CXCursor_TranslationUnit) {
// Objective-C type parameters are represented as non-top-level typedefs.
// Erase for now:
Expand Down

0 comments on commit be58d2e

Please sign in to comment.