Home | History | Annotate | Download | only in unit-tests

Lines Matching refs:the

3 # Tests for the :_ modifier, which saves the current expression value
4 # in the _ variable or another, to be used later again.
7 # The ':_' modifier is typically used in situations where the value of an
8 # expression is needed at the same time as a sequence of numbers. In these
9 # cases, the value of the expression is saved in the temporary variable '_',
10 # from where it is taken later in the same expression.
15 ABC.global:= ${ABC} # is evaluated in the global scope
20 .if ${DEF} != "1=D 2=E 3=F" # is evaluated in the command line scope
24 # Before var.c 1.1040 from 2023-02-09, the temporary variable '_' was placed
25 # in the scope of the current evaluation, which meant that after the first
27 # evaluations in global scope could not overwrite the variable '_' anymore,
28 # as the command line scope takes precedence over the global scope.
29 # The expression ${GHI} therefore evaluated to '1=D 2=E 3=F', reusing the
30 # value of '_' from the previous evaluation in command line scope.
31 GHI.global:= ${GHI} # is evaluated in the global scope
37 # In the parameterized form, having the variable name on the right side of
38 # the = assignment operator looks confusing. In almost all other situations,
39 # the variable name is on the left-hand side of the = operator, therefore
49 # The ':_' modifier takes a variable name as optional argument. Before var.c
52 # as that form caused a parse error. The cause for the parse error in
53 # '${...:_=VAR.${param}}' is that the variable name is parsed in an ad-hoc
54 # manner, stopping at the first ':', ')' or '}', without taking any nested
56 # are possible but long expressions aren't, the name of the temporary variable
59 # TODO: Warn about the unusual variable name '$S'.
69 # the value of the temporary variable '_' from the inner expression leaks into
70 # the evaluation of the outer expression. If the expressions were evaluated
71 # independently, the last word of the result would be outer_='outer' instead.