From a2ef1ba32f9d8da66105bb251ad3c1ec93511595 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Wed, 19 Jun 2019 23:47:24 +0000 Subject: [FileCheck] Stop qualifying expressions as numeric Summary: Stop referring to "numeric expression", using simply the term "expression" instead. Likewise for numeric operation since operations are only used in numeric expressions. Reviewers: jhenderson, jdenny, probinson, arichardson Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D63500 llvm-svn: 363901 --- llvm/docs/CommandGuide/FileCheck.rst | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'llvm/docs/CommandGuide') diff --git a/llvm/docs/CommandGuide/FileCheck.rst b/llvm/docs/CommandGuide/FileCheck.rst index ab36253b395..36f517ef62a 100644 --- a/llvm/docs/CommandGuide/FileCheck.rst +++ b/llvm/docs/CommandGuide/FileCheck.rst @@ -592,12 +592,12 @@ The syntax of a numeric substitution is ``[[#]]`` where: * ```` is the name of a defined numeric variable. -* ```` is an optional numeric operation to perform on the value of - ````. Currently supported numeric operations are ``+`` and ``-``. +* ```` is an optional operation to perform on the value of ````. + Currently supported operations are ``+`` and ``-``. * ```` is the immediate value that constitutes the second operand of - the numeric operation . It must be present if ```` is present, - absent otherwise. + the operation ````. It must be present if ```` is present, absent + otherwise. Spaces are accepted before, after and between any of these elements. @@ -627,8 +627,8 @@ due to ``7`` being unequal to ``5 + 1``. The ``--enable-var-scope`` option has the same effect on numeric variables as on string variables. -Important note: In its current implementation, a numeric expression cannot use -a numeric variable defined on the same line. +Important note: In its current implementation, an expression cannot use a +numeric variable defined on the same line. FileCheck Pseudo Numeric Variables ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -639,9 +639,9 @@ fragility of the match file structure, as "``CHECK:``" lines contain absolute line numbers in the same file, which have to be updated whenever line numbers change due to text addition or deletion. -To support this case, FileCheck numeric expressions understand the ``@LINE`` -pseudo numeric variable which evaluates to the line number of the CHECK pattern -where it is found. +To support this case, FileCheck expressions understand the ``@LINE`` pseudo +numeric variable which evaluates to the line number of the CHECK pattern where +it is found. This way match patterns can be put near the relevant test lines and include relative line number references, for example: -- cgit v1.2.3