diff options
author | Fangrui Song <i@maskray.me> | 2021-02-08 13:37:03 -0800 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-02-08 13:37:04 -0800 |
commit | 87dbdd2e3bb63b681f8cc3179ef5c2d5929bbf61 (patch) | |
tree | f7715781410fb4481455147f2762d59f3303b8d3 /llvm/utils/FileCheck/FileCheck.cpp | |
parent | ad60802a7187aa39b0374536be3fa176fe3d6256 (diff) | |
download | llvm-87dbdd2e3bb63b681f8cc3179ef5c2d5929bbf61.zip llvm-87dbdd2e3bb63b681f8cc3179ef5c2d5929bbf61.tar.gz llvm-87dbdd2e3bb63b681f8cc3179ef5c2d5929bbf61.tar.bz2 |
[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
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 09d82d3..a509c4d 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), 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<bool> MatchFullLines( |