diff options
author | Fangrui Song <i@maskray.me> | 2021-02-02 15:18:00 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-02-02 15:18:00 -0800 |
commit | eec87db2a66dcc52ce8c89433631a6a2867fd508 (patch) | |
tree | ce3f2c8065929bca2657df8bbfabe3206ea4fe92 /llvm/utils/FileCheck/FileCheck.cpp | |
parent | efc5926c20602cb40b86e8c592014103224994e9 (diff) | |
download | llvm-eec87db2a66dcc52ce8c89433631a6a2867fd508.zip llvm-eec87db2a66dcc52ce8c89433631a6a2867fd508.tar.gz llvm-eec87db2a66dcc52ce8c89433631a6a2867fd508.tar.bz2 |
[FileCheck] Make --allow-unused-prefixes cl::ZeroOrMore
cl::ZeroOrMore allows the option to be specified multiple times, which makes
downstream projects possible to specify a default value in lit configuration
while some tests can override the value.
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
-rw-r--r-- | llvm/utils/FileCheck/FileCheck.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp index d59607a..09d82d3 100644 --- a/llvm/utils/FileCheck/FileCheck.cpp +++ b/llvm/utils/FileCheck/FileCheck.cpp @@ -78,7 +78,7 @@ static cl::opt<bool> AllowEmptyInput( "checks that some error message does not occur, for example.")); static cl::opt<bool> AllowUnusedPrefixes( - "allow-unused-prefixes", cl::init(true), + "allow-unused-prefixes", cl::init(true), cl::ZeroOrMore, cl::desc("Allow prefixes to be specified but not appear in the test.")); static cl::opt<bool> MatchFullLines( |