Joel E. Denny
9f86b8ec41
[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
..
2020-06-09 18:57:46 +00:00
2020-05-14 20:24:09 -04:00
2019-11-21 18:01:12 -05:00
2019-11-21 18:01:12 -05:00
2020-02-04 11:14:55 +00:00
2019-11-21 18:01:12 -05:00
2019-11-21 18:01:12 -05:00
2019-11-21 18:01:12 -05:00
2019-11-21 18:01:12 -05:00
2019-11-21 18:01:12 -05:00
2019-11-21 18:01:12 -05:00
2019-11-21 18:01:12 -05:00
2020-07-28 19:15:18 -04:00
2020-07-10 11:02:11 -04:00
2020-07-10 11:02:10 -04:00
2020-07-10 11:02:11 -04:00
2020-06-09 18:57:46 +00:00
2020-05-13 11:29:48 -04:00
2020-04-16 15:00:50 +03:00
2020-06-10 15:56:10 +01:00
2020-06-09 18:57:46 +00:00
2020-06-09 18:57:46 +00:00
2019-11-21 18:01:12 -05:00
2019-11-21 18:01:12 -05:00
2019-11-21 18:01:12 -05:00
2020-03-31 17:29:11 -04:00
2020-01-24 14:15:28 +00:00
2020-06-10 12:40:35 -04:00
2019-11-21 18:01:12 -05:00
2020-01-24 14:15:28 +00:00
2019-11-21 18:01:12 -05:00
2020-05-13 11:29:48 -04:00
2020-05-22 05:36:15 -06:00
2020-07-28 19:15:18 -04:00