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

Script To Build With All Suggestions #8

Open
dsanders11 opened this issue Feb 8, 2022 · 0 comments
Open

Script To Build With All Suggestions #8

dsanders11 opened this issue Feb 8, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@dsanders11
Copy link
Owner

Create a script which takes in the output of suggest_include_changes.py and iteratively tries to get a clean build with the suggestions.

  • First apply all of the add suggestions - worst case it adds some false positives
  • Go through each translation unit, remove the suggested includes to remove, try to build, if it doesn't build cleanly, try each one individually to find the offending include(s)
  • Keep track of which removals caused a build failure. After N failures, add it to an ignore list and no longer try those removals
  • After all removals in translation units build cleanly, start removing from headers in batches of M files - if a build failure occurs, do one file at a time from the batch, then test each include removed in that file, repeat

At the end, output the list of ignored include removals for inspection, and leave the source tree in the modified state so that a full clean build can be done with include analysis.

@dsanders11 dsanders11 added the enhancement New feature or request label Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant