From eec87db2a66dcc52ce8c89433631a6a2867fd508 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 2 Feb 2021 15:18:00 -0800 Subject: [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. --- llvm/utils/FileCheck/FileCheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/utils/FileCheck/FileCheck.cpp') 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 AllowEmptyInput( "checks that some error message does not occur, for example.")); static cl::opt 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 MatchFullLines( -- cgit v1.1