From b508b3df67898901808c08b9576db2415b1ca05c Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Thu, 9 Jan 2025 12:49:33 +0200 Subject: [PATCH] Recurse into CXCursor_UnionDecl --- hs-bindgen-libclang/clang-ast-dump/Main.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hs-bindgen-libclang/clang-ast-dump/Main.hs b/hs-bindgen-libclang/clang-ast-dump/Main.hs index cde39b83..e1b8a1f6 100644 --- a/hs-bindgen-libclang/clang-ast-dump/Main.hs +++ b/hs-bindgen-libclang/clang-ast-dump/Main.hs @@ -130,6 +130,8 @@ foldDecls opts@Options{..} cursor = do Right CXCursor_MacroDefinition -> -- TODO not defined yet pure True + Right CXCursor_UnionDecl -> do + pure True Right{} -> False <$ traceL 1 "CURSOR_KIND_NOT_IMPLEMENTED" Left n -> False <$ traceU 1 "CURSOR_KIND_ENUM_OUT_OF_RANGE" n