Skip to content

Commit

Permalink
Merge pull request #360 from well-typed/clang-ast-dump-union
Browse files Browse the repository at this point in the history
Recurse into CXCursor_UnionDecl
  • Loading branch information
TravisCardwell authored Jan 9, 2025
2 parents f2fdb73 + b508b3d commit fe6fbe6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hs-bindgen-libclang/clang-ast-dump/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fe6fbe6

Please sign in to comment.