1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/FileCheck
Joel E. Denny 12c5f043b8 [FileCheck] Report captured variables
Report captured variables in input dumps and traces.  For example:

```
$ cat check
CHECK: hello [[WHAT:[a-z]+]]
CHECK: goodbye [[WHAT]]

$ FileCheck -dump-input=always -vv check < input |& tail -8
<<<<<<
           1: hello world
check:1'0     ^~~~~~~~~~~
check:1'1           ^~~~~ captured var "WHAT"
           2: goodbye world
check:2'0     ^~~~~~~~~~~~~
check:2'1                   with "WHAT" equal to "world"
>>>>>>

$ FileCheck -dump-input=never -vv check < input
check2:1:8: remark: CHECK: expected string found in input
CHECK: hello [[WHAT:[a-z]+]]
       ^
<stdin>:1:1: note: found here
hello world
^~~~~~~~~~~
<stdin>:1:7: note: captured var "WHAT"
hello world
      ^~~~~
check2:2:8: remark: CHECK: expected string found in input
CHECK: goodbye [[WHAT]]
       ^
<stdin>:2:1: note: found here
goodbye world
^~~~~~~~~~~~~
<stdin>:2:1: note: with "WHAT" equal to "world"
goodbye world
^
```

Reviewed By: thopre

Differential Revision: https://reviews.llvm.org/D83651
2020-07-28 19:15:18 -04:00
..
comment Change filecheck default to dump input on failure 2020-06-09 18:57:46 +00:00
bad-char.txt [FileCheck] Fix isalpha/isalnum calls 2020-05-14 20:24:09 -04:00
check-a-b-has-b.txt
check-b-a-has-b.txt
check-count.txt
check-dag-multi-prefix-2.txt
check-dag-multi-prefix.txt
check-dag-not-dag.txt
check-dag-overlap-torture.txt
check-dag-overlap.txt
check-dag-substring-prefix.txt
check-dag-xfails.txt
check-dag.txt
check-empty2.txt
check-empty-tag.txt
check-empty.txt
check-ignore-case.txt
check-label-dag-capture.txt
check-label-dag.txt
check-label.txt
check-multi-prefix-label.txt
check-multiple-prefixes-mixed.txt
check-multiple-prefixes-nomatch-2.txt
check-multiple-prefixes-nomatch.txt
check-multiple-prefixes-substr.txt
check-not-diaginfo.txt
check-prefixes.txt
check-substring-multi-prefix-2.txt
check-substring-multi-prefix.txt
dos-style-eol.txt
dump-input-annotations.txt [FileCheck] Report captured variables 2020-07-28 19:15:18 -04:00
dump-input-context.txt [FileCheck] In input dump, elide only if ellipsis is shorter 2020-07-10 11:02:11 -04:00
dump-input-enable.txt [FileCheck] Implement -dump-input-context 2020-07-10 11:02:10 -04:00
dump-input-filter.txt [FileCheck] Implement -dump-input-filter 2020-07-10 11:02:11 -04:00
empty-regex-match-at-start.txt
envvar-opts.txt Change filecheck default to dump input on failure 2020-06-09 18:57:46 +00:00
first-character-match.txt [FileCheck] Support comment directives 2020-05-13 11:29:48 -04:00
implicit-check-not.txt
line-count-2.txt
line-count.txt FileCheck [11/12]: Add matching constraint specification 2020-06-10 15:56:10 +01:00
lit.local.cfg Change filecheck default to dump input on failure 2020-06-09 18:57:46 +00:00
match-full-lines.txt Change filecheck default to dump input on failure 2020-06-09 18:57:46 +00:00
multiple-missing-prefixes.txt
next-no-match.txt
no-check-file.txt
no-multi-suffixes.txt
numeric-defines-diagnostics.txt
numeric-defines.txt
numeric-expression.txt [FileCheck] Add missing %ProtectFileCheckOutput to FileCheck tests 2020-06-10 12:40:35 -04:00
opt-color.txt
regex-brackets.txt
regex-no-match.txt
same.txt
separate-multi-prefix.txt
simple-var-capture.txt
string-defines-diagnostics.txt
string-defines.txt
two-checks-for-same-match.txt
validate-check-prefix.txt [FileCheck] Support comment directives 2020-05-13 11:29:48 -04:00
var-ref-same-line.txt
var-scope.txt Revert "[llvm][test] Add COM: directives before colon-less non-CHECKs in comments. NFC" 2020-05-22 05:36:15 -06:00
verbose.txt [FileCheck] Report captured variables 2020-07-28 19:15:18 -04:00