diff options
author | Jon Brandvein <brandjon@google.com> | 2017-03-21 23:15:28 +0000 |
---|---|---|
committer | Yue Gan <yueg@google.com> | 2017-03-22 10:54:26 +0000 |
commit | 22d261c21748fba31797f0de8bd98fb2ff2fd2f5 (patch) | |
tree | 6e6eed659033730eab800d0ec01dac7e65fcc6f0 /src/create_embedded_tools.sh | |
parent | b628cab872f5784e661e6c5c2db2827877d43837 (diff) |
Add expansion functions to options parser
This provides a way to programmatically define expansions of options based on what other options are defined for the parser. In particular, it will be used for the --incompatible_* changes mechanism, to turn on all incompatible change flags.
Expansion functions are specified in the @Option annotation, similar to converters. They are computed when an OptionsParser is constructed, and inspect a preliminary version of its OptionsData to determine the expansion result. This is then cached in the final OptionsData used by the parser.
Expansion information for usage strings is available, but only when the usage strings are obtained via the parser.
--
PiperOrigin-RevId: 150817553
MOS_MIGRATED_REVID=150817553
Diffstat (limited to 'src/create_embedded_tools.sh')
0 files changed, 0 insertions, 0 deletions