Batch dependency scanning was added as a mechanism to support multiple compilation contexts within a single module dependency graph.
The Swift compiler and the Explicitly-built modules model has long since abandoned this approach and this code has long been stale. It is time to remove it and its associated C API.
* Add missing arg-flags to split-cmdline
* Add parameter arguments scraped from --help menus to split-cmdline
* Break apart line in comment to fix lint error
When printing an argument that contains ';', add back
the quotes that are normally stripped.
I regularly waste half a day building Swift only to find that I built
the wrong thing because everything after the semicolon is dropped from
the build script when it contains arguments like this:
'--llvm-install-components=libclang;libclang-headers'
Ideally, split-cmdline would just preserve the original quotes. But
this quick fix solves the problem in the cases that I care about.
The `__future__` we relied on is now, where the 3 specific things are
all included [since Python 3.0](https://docs.python.org/3/library/__future__.html):
* absolute_import
* print_function
* unicode_literals
* division
These import statements are no-ops and are no longer necessary.
Add a general heuristic that options ending in -path expect an argument.
Remove such options from the explicit is_arg_param list and sort it to simplify maintenance.
Recognize -target-sdk-version.
The utils/dev-scripts/at-to-filelist, utils/dev-scripts/split-cmdline and utils/build-parser-lib scripts needed to be reformatted with the black tool to agree with the linter.
For details see the comment in split-cmdline
I put this under a new directory utils/dev-script because we have so much stuff in utils already.
Other, similar scripts can then be added in dev-scripts as well.