summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide/FileCheck.rst
diff options
context:
space:
mode:
authorAlexander Richardson <arichardson.kde@gmail.com>2017-11-07 13:24:44 +0000
committerAlexander Richardson <arichardson.kde@gmail.com>2017-11-07 13:24:44 +0000
commit46e1fd61021ff06966e672cb38cba0278b9d0b0d (patch)
tree4bf34236bc55ddcc6d1358c759206e52f0f0605d /llvm/docs/CommandGuide/FileCheck.rst
parent9a6b720f4fc9a40785262a74de8595eb511fb6a2 (diff)
downloadbcm5719-llvm-46e1fd61021ff06966e672cb38cba0278b9d0b0d.tar.gz
bcm5719-llvm-46e1fd61021ff06966e672cb38cba0278b9d0b0d.zip
Add a -D flag to FileCheck to define variables
Summary: This makes it very easy to test files that only differ in a constant value somewhere in the test case. Reviewers: jlebar, hfinkel, chandlerc, probinson Reviewed By: probinson Subscribers: probinson, llvm-commits Differential Revision: https://reviews.llvm.org/D39629 llvm-svn: 317572
Diffstat (limited to 'llvm/docs/CommandGuide/FileCheck.rst')
-rw-r--r--llvm/docs/CommandGuide/FileCheck.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/FileCheck.rst b/llvm/docs/CommandGuide/FileCheck.rst
index 44cc57cebaf..9078f65e01c 100644
--- a/llvm/docs/CommandGuide/FileCheck.rst
+++ b/llvm/docs/CommandGuide/FileCheck.rst
@@ -86,6 +86,11 @@ OPTIONS
All other variables get undefined after each encountered ``CHECK-LABEL``.
+.. option:: -D<VAR=VALUE>
+
+ Sets a filecheck variable ``VAR`` with value ``VALUE`` that can be used in
+ ``CHECK:`` lines.
+
.. option:: -version
Show the version number of this program.
OpenPOWER on IntegriCloud