Skip to content

Commit

Permalink
Merge branch 'master' into protz_numbered_enums
Browse files Browse the repository at this point in the history
  • Loading branch information
msprotz authored Dec 20, 2024
2 parents fd20524 + e0fe023 commit 032fbda
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/DataTypes.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,10 @@ let remove_empty_structs files =
LidSet.empty
end)#visit_files () files in

let files = List.map (fun (f, decls) ->
f, List.filter (fun d -> not (LidSet.mem (lid_of_decl d) empty_structs)) decls
) files in

(object

inherit [_] map as super
Expand Down

0 comments on commit 032fbda

Please sign in to comment.