diff options
author | James Y Knight <jyknight@google.com> | 2016-02-11 16:46:09 +0000 |
---|---|---|
committer | James Y Knight <jyknight@google.com> | 2016-02-11 16:46:09 +0000 |
commit | 85913cca8bbe6e2bccfd216a6eac95e37d521a86 (patch) | |
tree | 647fc42b0edc61eec6cfe3c6fe7241fde140ead0 /llvm/docs/CommandGuide | |
parent | ceda883e4d2d71266d533a6661dde78a360ab41d (diff) | |
download | bcm5719-llvm-85913cca8bbe6e2bccfd216a6eac95e37d521a86.tar.gz bcm5719-llvm-85913cca8bbe6e2bccfd216a6eac95e37d521a86.zip |
Add -match-full-lines argument to FileCheck.
This is useful for some tests where more-exact matching is useful, such
as clang's Preprocessor tests.
llvm-svn: 260540
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r-- | llvm/docs/CommandGuide/FileCheck.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/FileCheck.rst b/llvm/docs/CommandGuide/FileCheck.rst index 03c88297677..8d88237f393 100644 --- a/llvm/docs/CommandGuide/FileCheck.rst +++ b/llvm/docs/CommandGuide/FileCheck.rst @@ -42,6 +42,18 @@ OPTIONS File to check (defaults to stdin). +.. option:: --match-full-lines + + By default, FileCheck allows matches of anywhere on a line. This + option will require all positive matches to cover an entire + line. Leading and trailing whitespace is ignored, unless + :option:`--strict-whitespace` is also specified. (Note: negative + matches from ``CHECK-NOT`` are not affected by this option!) + + Passing this option is equivalent to inserting ``{{^ *}}`` or + ``{{^}}`` before, and ``{{ *$}}`` or ``{{$}}`` after every positive + check pattern. + .. option:: --strict-whitespace By default, FileCheck canonicalizes input horizontal whitespace (spaces and |