Skip to content

Script To Build With All Suggestions #8

Open
@dsanders11

Description

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.

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions