[PATCH] D158164: [FileCheck] Added --match-full-lines-leading and --match-full-lines-trailing option
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 17 13:02:57 PDT 2023
MaskRay added a comment.
I also don't see a need to add any new option.
https://github.com/llvm/llvm-project/blob/638865c8f93989c5f7a237417356c920d55e0136/llvm/test/tools/llvm-readobj/ELF/file-headers.test#L6
We often check things this way:
`# RUN: llvm-readobj --file-headers %t.i386 | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.i386 --check-prefix I386`
# I386:File: [[FILE]]
# I386-NEXT:Format: elf32-i386
# I386-NEXT:Arch: i386
# I386-NEXT:AddressSize: 32bit
# I386-NEXT:LoadName: <Not found>
Note that `:` is aligned, different from the style we use when `--strict-whitespace --match-full-lines` are unused.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158164/new/
https://reviews.llvm.org/D158164
More information about the llvm-commits
mailing list