mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
12c5f043b8
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 |
||
---|---|---|
.. | ||
comment | ||
bad-char.txt | ||
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 | ||
dump-input-context.txt | ||
dump-input-enable.txt | ||
dump-input-filter.txt | ||
empty-regex-match-at-start.txt | ||
envvar-opts.txt | ||
first-character-match.txt | ||
implicit-check-not.txt | ||
line-count-2.txt | ||
line-count.txt | ||
lit.local.cfg | ||
match-full-lines.txt | ||
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 | ||
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 | ||
var-ref-same-line.txt | ||
var-scope.txt | ||
verbose.txt |