OSDN Git Service

[FileCheck] Added --enable-var-scope option to enable scope for regex variables.
authorArtem Belevich <tra@google.com>
Thu, 9 Mar 2017 17:59:04 +0000 (17:59 +0000)
committerArtem Belevich <tra@google.com>
Thu, 9 Mar 2017 17:59:04 +0000 (17:59 +0000)
commitbb9779aa2e56321365861cc02988265487469da1
tree6808a9d667c2287429beb3031760bc8b8cb68270
parentef87bd90513d007464b542d736ef26b10c5656b3
[FileCheck] Added --enable-var-scope option to enable scope for regex variables.

If `--enable-var-scope` is in effect, variables with names that
start with `$` are considered to be global. All other variables are
local. All local variables get undefined at the beginning of each
CHECK-LABEL block. Global variables are not affected by CHECK-LABEL.
This makes it easier to ensure that individual tests are not affected
by variables set in preceding tests.

Differential Revision: https://reviews.llvm.org/D30749

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297396 91177308-0d34-0410-b5e6-96231b3b80d8
docs/CommandGuide/FileCheck.rst
test/FileCheck/line-count.txt
test/FileCheck/regex-scope.txt [new file with mode: 0644]
utils/FileCheck/FileCheck.cpp