From 87dbdd2e3bb63b681f8cc3179ef5c2d5929bbf61 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 8 Feb 2021 13:37:03 -0800 Subject: [FileCheck] Default --allow-unused-prefixes to false Link: https://lists.llvm.org/pipermail/llvm-dev/2020-October/146162.html "[RFC] FileCheck: (dis)allowing unused prefixes" If a downstream project using lit needs time for transition, add the following to `lit.local.cfg`: ``` from lit.llvm.subst import ToolSubst fc = ToolSubst('FileCheck', unresolved='fatal') config.substitutions.insert(0, (fc.regex, 'FileCheck --allow-unused-prefixes')) ``` Differential Revision: https://reviews.llvm.org/D95849 --- 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 09d82d3..a509c4d 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), cl::ZeroOrMore, + "allow-unused-prefixes", cl::init(false), cl::ZeroOrMore, cl::desc("Allow prefixes to be specified but not appear in the test.")); static cl::opt MatchFullLines( -- cgit v1.1