summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CommandGuide/FileCheck.rst
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2018-07-20 20:21:57 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2018-07-20 20:21:57 +0000
commit346dfbe2bce57f7d0bb27d24fe3fdd7ae1f50701 (patch)
tree209f87606d835738189c9ef40a13d21bece9efba /llvm/docs/CommandGuide/FileCheck.rst
parent7ed83591c2e33a008bdd1393892fadc080786fd0 (diff)
downloadbcm5719-llvm-346dfbe2bce57f7d0bb27d24fe3fdd7ae1f50701.tar.gz
bcm5719-llvm-346dfbe2bce57f7d0bb27d24fe3fdd7ae1f50701.zip
[FileCheck] Provide an option for FileCheck to dump original input to stderr on failure
The option can be either set using environment variable (e.g. env FILECHECK_DUMP_INPUT_ON_FAILURE=1 ninja check-fuzzer) or with a FileCheck flag. This can be extremely useful for debugging, cf. https://groups.google.com/forum/#!topic/llvm-dev/kLrzg8OM_h8 for discussion. Differential Revision: https://reviews.llvm.org/D49328 llvm-svn: 337609
Diffstat (limited to 'llvm/docs/CommandGuide/FileCheck.rst')
-rw-r--r--llvm/docs/CommandGuide/FileCheck.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/FileCheck.rst b/llvm/docs/CommandGuide/FileCheck.rst
index dfa2fd29515..b0324f40463 100644
--- a/llvm/docs/CommandGuide/FileCheck.rst
+++ b/llvm/docs/CommandGuide/FileCheck.rst
@@ -77,6 +77,10 @@ OPTIONS
-verify``. With this option FileCheck will verify that input does not contain
warnings not covered by any ``CHECK:`` patterns.
+.. option:: --dump-input-on-failure
+
+ When the check fails, dump all of the original input.
+
.. option:: --enable-var-scope
Enables scope for regex variables.
OpenPOWER on IntegriCloud