diff options
author | Fangrui Song <i@maskray.me> | 2022-06-03 21:59:05 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-06-03 21:59:05 -0700 |
commit | 557efc9a8b68628c2c944678c6471dac30ed9e8e (patch) | |
tree | 150a1fb757ab69e5c2cb03a7ab42bbba317d59d1 /llvm/utils/FileCheck/FileCheck.cpp | |
parent | f14d18c7a9544ea5fbea736210d05e938a986033 (diff) | |
download | llvm-557efc9a8b68628c2c944678c6471dac30ed9e8e.zip llvm-557efc9a8b68628c2c944678c6471dac30ed9e8e.tar.gz llvm-557efc9a8b68628c2c944678c6471dac30ed9e8e.tar.bz2 |
[llvm] Remove unneeded cl::ZeroOrMore for cl::opt options. NFC
Some cl::ZeroOrMore were added to avoid the `may only occur zero or one times!`
error. More were added due to cargo cult. Since the error has been removed,
cl::ZeroOrMore is unneeded.
Also remove cl::init(false) while touching the lines.
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
-rw-r--r-- | llvm/utils/FileCheck/FileCheck.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp index 7ab84d8..6657a1a 100644 --- a/llvm/utils/FileCheck/FileCheck.cpp +++ b/llvm/utils/FileCheck/FileCheck.cpp @@ -81,7 +81,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(false), cl::ZeroOrMore, + "allow-unused-prefixes", cl::desc("Allow prefixes to be specified but not appear in the test.")); static cl::opt<bool> MatchFullLines( @@ -104,12 +104,12 @@ static cl::opt<bool> AllowDeprecatedDagOverlap( "non-overlapping CHECK-DAG implementation.\n")); static cl::opt<bool> Verbose( - "v", cl::init(false), cl::ZeroOrMore, + "v", cl::desc("Print directive pattern matches, or add them to the input dump\n" "if enabled.\n")); static cl::opt<bool> VerboseVerbose( - "vv", cl::init(false), cl::ZeroOrMore, + "vv", cl::desc("Print information helpful in diagnosing internal FileCheck\n" "issues, or add it to the input dump if enabled. Implies\n" "-v.\n")); |