diff options
author | Joel E. Denny <jdenny.ornl@gmail.com> | 2018-11-06 22:07:03 +0000 |
---|---|---|
committer | Joel E. Denny <jdenny.ornl@gmail.com> | 2018-11-06 22:07:03 +0000 |
commit | 24994d77b8178f4c65dd4ef9c82748d337a48f2f (patch) | |
tree | 68d8d4705a00a596777be30ffc2b4649fd621ec1 /llvm/utils/FileCheck | |
parent | c3ad28d5e81ae9be0bf18b5c31065777dc2af66f (diff) | |
download | bcm5719-llvm-24994d77b8178f4c65dd4ef9c82748d337a48f2f.tar.gz bcm5719-llvm-24994d77b8178f4c65dd4ef9c82748d337a48f2f.zip |
[FileCheck] Parse command-line options from FILECHECK_OPTS
This feature makes it easy to tune FileCheck diagnostic output when
running the test suite via ninja, a bot, or an IDE. For example:
```
$ FILECHECK_OPTS='-color -v -dump-input-on-failure' \
LIT_FILTER='OpenMP/for_codegen.cpp' ninja check-clang \
| less -R
```
Reviewed By: probinson
Differential Revision: https://reviews.llvm.org/D53517
llvm-svn: 346272
Diffstat (limited to 'llvm/utils/FileCheck')
-rw-r--r-- | llvm/utils/FileCheck/FileCheck.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp index bf3c3983cfa..967d22f12b6 100644 --- a/llvm/utils/FileCheck/FileCheck.cpp +++ b/llvm/utils/FileCheck/FileCheck.cpp @@ -114,7 +114,8 @@ int main(int argc, char **argv) { llvm::sys::Process::UseANSIEscapeCodes(true); InitLLVM X(argc, argv); - cl::ParseCommandLineOptions(argc, argv); + cl::ParseCommandLineOptions(argc, argv, /*Overview*/ "", /*Errs*/ nullptr, + "FILECHECK_OPTS"); FileCheckRequest Req; for (auto Prefix : CheckPrefixes) |