DescriptionGN: Mark all variables used when defining a template.
This exempts file-scoped values from used variable checking when a template is
defined. This avoids spurious unused variable warnings at the expense of
potentially missing unused variables in some cases. These warnings have tripped
people up multiple times.
The potential for missing actual unused values is pretty small, however,
because most templates are defined in .gni files that don't have used variable
checking (since they could be included into many different contexts).
BUG=395883
Committed: https://crrev.com/ba1286d0e720ef723192e4a2af7e99d0516495d6
Cr-Commit-Position: refs/heads/master@{#411265}
Patch Set 1 #Patch Set 2 : tests #
Messages
Total messages: 21 (11 generated)
|