Closed Delaunay closed 4 years ago
There is more cusor type that cause the segmentation fault. and storage class can create a segmentation fault as well
CursorKind.MACRO_DEFINITION: {'tls_kind', 'storage_class'},
CursorKind.MACRO_INSTANTIATION: {'tls_kind', 'storage_class'},
CursorKind.DECL_STMT: {'tls_kind'},
CursorKind.PAREN_EXPR: {'tls_kind'},
CursorKind.CSTYLE_CAST_EXPR: {'tls_kind'},
CursorKind.INTEGER_LITERAL: {'tls_kind'},
CursorKind.STRING_LITERAL: {'tls_kind'},
CursorKind.UNARY_OPERATOR: {'tls_kind'},
CursorKind.BINARY_OPERATOR: {'tls_kind'},
CursorKind.DECL_REF_EXPR: {'tls_kind'},
CursorKind.FLOATING_LITERAL: {'tls_kind'},
CursorKind.CALL_EXPR: {'tls_kind'},
You should file issues with the llvm issue tracker or https://github.com/trolldbois/python-clang, I don't maintain this anymore, sorry
Macro do not have TLS kind set but python should not segfault because of it.