Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

analyze: more def list options #1175

Merged
merged 5 commits into from
Dec 3, 2024
Merged

Conversation

spernsteiner
Copy link
Collaborator

@spernsteiner spernsteiner commented Dec 2, 2024

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 DefIds 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 DefIds 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 DefIds to be erroneously rejected when parsing the --fixed-defs-list file.

@spernsteiner spernsteiner requested a review from ahomescu December 2, 2024 19:32
@spernsteiner spernsteiner force-pushed the analyze-more-def-list-options-base branch from 738692d to ff0fe1a Compare December 3, 2024 20:01
@spernsteiner spernsteiner force-pushed the analyze-more-def-list-options branch from 34be8b4 to 5073cc4 Compare December 3, 2024 20:01
@spernsteiner spernsteiner changed the base branch from analyze-more-def-list-options-base to master December 3, 2024 20:01
@spernsteiner spernsteiner merged commit 33465fe into master Dec 3, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants