-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
analyze: more def list options (#1175)
This adds more command line options for controlling which defs get rewritten. Specifically, it adds two new options: * `--force-rewrite-defs-list FILE`: Reads from `FILE` a list of `DefId`s that should always be rewritten, even if related defs encounter analysis or rewriting errors. * `--skip-pointee-defs-list FILE`: Reads from `FILE` a list of `DefId`s for which pointee analysis should be skipped. Both options take input in the same format as the existing `--fixed-defs-list FILE` option. These options were useful for getting the `buffer` module to rewrite successfully while running `c2rust-analyze` against the entire lighttpd codebase. This PR also fixes a bug that caused `DefId`s to be erroneously rejected when parsing the `--fixed-defs-list` file.
- Loading branch information
Showing
3 changed files
with
99 additions
and
7 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
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