[PATCH] D60385: FileCheck [5/12]: Introduce regular numeric variables
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 7 16:22:42 PDT 2019
thopre created this revision.
thopre added reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson, rnk.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
thopre added a parent revision: D60384: FileCheck [4/12]: Introduce @LINE numeric expressions.
thopre added a child revision: D60386: FileCheck [6/12]: Introduce numeric variable definition.
This patch is part of a patch series to add support for FileCheck
numeric expressions. This specific patch introduces regular numeric
variables which can be set on the command-line.
This commit introduces regular numeric variable that can be set on the
command-line with the -D option to a numeric value. They can then be
used in CHECK patterns in numeric expression with the same shape as
@LINE numeric expression, ie. VAR, VAR+offset or VAR-offset where offset
is an integer literal.
The commit also enable strict whitespace in the verbose.txt testcase to
check that the position or the location diagnostics. It fixes one of the
existing CHECK in the process which was not accurately testing a
location diagnostic (ie. the diagnostic was correct, not the CHECK).
Copyright:
- Linaro (changes up to diff 183612 of revision D55940 <https://reviews.llvm.org/D55940>)
- GraphCore (changes in later versions of revision D55940 <https://reviews.llvm.org/D55940> and in new revision created off D55940 <https://reviews.llvm.org/D55940>)
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D60385
Files:
llvm/docs/CommandGuide/FileCheck.rst
llvm/include/llvm/Support/FileCheck.h
llvm/lib/Support/FileCheck.cpp
llvm/test/FileCheck/defines.txt
llvm/test/FileCheck/numeric-expression.txt
llvm/test/FileCheck/regex-scope.txt
llvm/test/FileCheck/var-scope.txt
llvm/test/FileCheck/verbose.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60385.194080.patch
Type: text/x-patch
Size: 39356 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190407/4468a96e/attachment-0001.bin>
More information about the llvm-commits
mailing list