diff options
author | Kai Nacke <kai.nacke@redstar.de> | 2019-10-11 11:59:14 +0000 |
---|---|---|
committer | Kai Nacke <kai.nacke@redstar.de> | 2019-10-11 11:59:14 +0000 |
commit | 5b5b2fd2b8b4fe66d1e57065ab0aef22b16e4a13 (patch) | |
tree | a9dbb8b8302a33a151a759cea9a7226da310c657 /llvm/utils/FileCheck/FileCheck.cpp | |
parent | 807dbee36679a8e43b25c3fcfd38e750fd4e943d (diff) | |
download | bcm5719-llvm-5b5b2fd2b8b4fe66d1e57065ab0aef22b16e4a13.tar.gz bcm5719-llvm-5b5b2fd2b8b4fe66d1e57065ab0aef22b16e4a13.zip |
[FileCheck] Implement --ignore-case option.
The FileCheck utility is enhanced to support a `--ignore-case`
option. This is useful in cases where the output of Unix tools
differs in case (e.g. case not specified by Posix).
Reviewers: Bigcheese, jakehehrlich, rupprecht, espindola, alexshap, jhenderson, MaskRay
Differential Revision: https://reviews.llvm.org/D68146
llvm-svn: 374538
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
-rw-r--r-- | llvm/utils/FileCheck/FileCheck.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp index 8718be28ac9..44d5be13751 100644 --- a/llvm/utils/FileCheck/FileCheck.cpp +++ b/llvm/utils/FileCheck/FileCheck.cpp @@ -48,6 +48,10 @@ static cl::opt<bool> NoCanonicalizeWhiteSpace( "strict-whitespace", cl::desc("Do not treat all horizontal whitespace as equivalent")); +static cl::opt<bool> IgnoreCase( + "ignore-case", + cl::desc("Use case-insensitive matching")); + static cl::list<std::string> ImplicitCheckNot( "implicit-check-not", cl::desc("Add an implicit negative check with this pattern to every\n" @@ -555,6 +559,7 @@ int main(int argc, char **argv) { Req.VerboseVerbose = VerboseVerbose; Req.NoCanonicalizeWhiteSpace = NoCanonicalizeWhiteSpace; Req.MatchFullLines = MatchFullLines; + Req.IgnoreCase = IgnoreCase; if (VerboseVerbose) Req.Verbose = true; |