From 24994d77b8178f4c65dd4ef9c82748d337a48f2f Mon Sep 17 00:00:00 2001 From: "Joel E. Denny" Date: Tue, 6 Nov 2018 22:07:03 +0000 Subject: [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 --- llvm/utils/FileCheck/FileCheck.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/utils/FileCheck/FileCheck.cpp') 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) -- cgit v1.2.3