Fix a broken sentence
authorEli Bendersky <eliben@google.com>
Wed, 7 Nov 2012 01:52:41 +0000 (01:52 +0000)
committerEli Bendersky <eliben@google.com>
Wed, 7 Nov 2012 01:52:41 +0000 (01:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167521 91177308-0d34-0410-b5e6-96231b3b80d8

docs/CommandGuide/FileCheck.rst

index 6fdc175c8647b130e5e9fb016b42dbd1a8619f7e..1d7a462bd71f19afc2184c65a8b0bf150db1eecc 100644 (file)
@@ -276,8 +276,9 @@ simple example:
 The first check line matches a regex (**%[a-z]+**) and captures it into
 the variable "REGISTER".  The second line verifies that whatever is in REGISTER
 occurs later in the file after an "andw".  FileCheck variable references are
-always contained in **[[ ]]** pairs, are named, and their names can be
-name, then it is a definition of the variable, if not, it is a use.
+always contained in **[[ ]]** pairs, and their names can be formed with the
+regex **[a-zA-Z][a-zA-Z0-9]***.  If a colon follows the name, then it is a
+definition of the variable; otherwise, it is a use.
 
 FileCheck variables can be defined multiple times, and uses always get the
 latest value.  Note that variables are all read at the start of a "CHECK" line