Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Analysis / scan-build / lit.local.cfg
blobfab52b1c7bd679fa1dc0ab36e00c318de114f15b
1 # -*- Python -*-
3 import lit.util
4 import lit.formats
5 import os
7 use_lit_shell = os.environ.get("LIT_USE_INTERNAL_SHELL")
8 config.test_format = lit.formats.ShTest(use_lit_shell == "0")
10 clang_path = config.clang if config.have_llvm_driver else os.path.realpath(config.clang)
12 config.substitutions.append(
13     (
14         "%scan-build",
15         "'%s' --use-analyzer=%s "
16         % (
17             lit.util.which(
18                 "scan-build",
19                 os.path.join(config.clang_src_dir, "tools", "scan-build", "bin"),
20             ),
21             clang_path,
22         ),
23     )