FileCheck
Flexible pattern matching file verifier. It is typically used from LLVM regression tests and forms a part of a
littest. More information: https://llvm.org/docs/CommandGuide/FileCheck.html.
- Match
input_filecontent with pattern filecheck_file:
FileCheck --input-file=
- Match input from the
stdinwith pattern filecheck_file:
echo "" | FileCheck
- Match with the specified custom check
prefix(Note: The default prefix isCHECK):
echo "" | FileCheck --check-prefix=
- Print good directive pattern matches:
echo "" | FileCheck -v
- Input
llvm_code.llinto llvm-as, then pipe the output into FileCheck to match:
llvm-as | FileCheck
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
