-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
open ApiAst | ||
open ApiMap | ||
|
||
|
||
let map_decl v state = function | ||
| Decl_Enum (Enum_Bitmask, lname, enumerators) -> | ||
let comment = Cmt_Doc [ | ||
Cmtf_Break; | ||
Cmtf_Doc " The empty bit mask. None of the bits specified below are set."; | ||
] in | ||
let enumerators = Enum_Name (comment, "NONE", Some 0) :: enumerators in | ||
Decl_Enum (Enum_Bitmask, lname, enumerators) | ||
|
||
| decl -> | ||
visit_decl v state decl | ||
|
||
|
||
let v = { default with map_decl } | ||
|
||
|
||
let transform decls = | ||
visit_decls v () decls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters