Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions docs/06-options.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Options
=======

--strict-whitespace
-------------------
strict-whitespace
-----------------

When the ``--strict-whitespace`` option is not provided, FileCheck ignores
differences between spaces and tabs. Additionally multiple spaces are ignored
Expand All @@ -27,8 +27,8 @@ will pass on any of the following inputs:

Adding ``--strict-whitespace`` disables this behavior.

--match-full-lines
------------------
match-full-lines
----------------

When the ``--match-full-lines`` option is not provided, FileCheck does not
match full lines.
Expand Down Expand Up @@ -76,8 +76,8 @@ Notice absence of spaces between ``CHECK:`` and the lines.
$ echo $?
0

--check-prefix
--------------
check-prefix
------------

The ``--check-prefix`` option allows changing a default match keyword `CHECK`
to an arbitrary keyword. This is useful when you want to test different behavior
Expand All @@ -93,25 +93,25 @@ in the same file:
One usual case is testing of how a program behaves when it is run with or
without a specific option.

--implicit-check-not
--------------------
implicit-check-not
------------------

The ``--implicit-check-not`` option adds implicit `CHECK-NOT` check that works
on every input line.

FileCheck.py follows LLVM FileCheck in the following implementation details:

- The implicit checks are substring-matched i.e. their are ``in`` checks, not
``==`` checks.
``==`` checks.

- The implicit checks are case sensitive, so ``error`` check will not match
``ERROR`` in the input.
``ERROR`` in the input.

- The implicit check has lower priority than the positive `CHECK*` checks,
but it has higher priority than negative `CHECK-NOT` checks.
but it has higher priority than negative `CHECK-NOT` checks.

- To provide multiple implicit checks, duplicate the argument
``--implicit-check-not <your check>`` multiple times.
``--implicit-check-not <your check>`` multiple times.

Example
~~~~~~~
Expand Down