[FileCheck] Default --allow-unused-prefixes to false
authorFangrui Song <i@maskray.me>
Mon, 8 Feb 2021 21:37:03 +0000 (13:37 -0800)
committerFangrui Song <i@maskray.me>
Mon, 8 Feb 2021 21:37:04 +0000 (13:37 -0800)
commit87dbdd2e3bb63b681f8cc3179ef5c2d5929bbf61
treef7715781410fb4481455147f2762d59f3303b8d3
parentad60802a7187aa39b0374536be3fa176fe3d6256
[FileCheck] Default --allow-unused-prefixes to false

Link: https://lists.llvm.org/pipermail/llvm-dev/2020-October/146162.html
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
clang/test/Driver/crash-report-null.test
clang/test/OpenMP/lit.local.cfg
clang/test/lit.cfg.py
llvm/test/FileCheck/allow-unused-prefixes.txt
llvm/test/FileCheck/lit.local.cfg
llvm/test/Other/opt-bisect-legacy-pass-manager.ll
llvm/test/Reduce/lit.local.cfg [deleted file]
llvm/test/Transforms/Attributor/lit.local.cfg
llvm/test/lit.cfg.py
llvm/utils/FileCheck/FileCheck.cpp