DescriptionSupport for excluding variable from forwarding via forward_variables_form.
Some templates wants to forward all their parameters to the underlying
target except a select few they use. Previously they had to list all
the variables the underlying target supported which was error prone and
brittle if the underlying target is changed.
With this change they can just use the following:
forward_variables_from(invoker, "*", ["my_extra_variable"])
# my_extra_variable is not forwarded, all other variables are.
BUG=580293
Committed: https://crrev.com/bf5ff79020d15e683a12b45be08200ab7d857550
Cr-Commit-Position: refs/heads/master@{#371492}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Fix error message about incorrect argument count #
Total comments: 10
Patch Set 3 : Address comments and expand filter to templates/target_defaults in NonRecursiveMergeTo #
Messages
Total messages: 13 (5 generated)
|