mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-16 20:06:37 +00:00

This is an ongoing series of commits that are reformatting our Python code. Reformatting is done with `black`. If you end up having problems merging this commit because you have made changes to a python file, the best way to handle that is to run git checkout --ours <yourfile> and then reformat it with black. If you run into any problems, post to discourse about it and we will try to help. RFC Thread below: https://discourse.llvm.org/t/rfc-document-and-standardize-python-code-style Reviewed By: MatzeB Differential Revision: https://reviews.llvm.org/D150761
21 lines
814 B
Python
21 lines
814 B
Python
import lit.llvm
|
|
|
|
lit.llvm.initialize(lit_config, config)
|
|
lit.llvm.llvm_config.use_default_substitutions()
|
|
|
|
config.name = "ClangIncludeCleaner"
|
|
config.suffixes = [".test", ".c", ".cpp"]
|
|
config.excludes = ["Inputs"]
|
|
config.test_format = lit.formats.ShTest(not lit.llvm.llvm_config.use_lit_shell)
|
|
config.test_source_root = config.clang_include_cleaner_source_dir + "/test"
|
|
config.test_exec_root = config.clang_include_cleaner_binary_dir + "/test"
|
|
|
|
config.environment["PATH"] = os.path.pathsep.join(
|
|
(config.clang_tools_dir, config.llvm_tools_dir, config.environment["PATH"])
|
|
)
|
|
|
|
# It is not realistically possible to account for all options that could
|
|
# possibly be present in system and user configuration files, so disable
|
|
# default configs for the test runs.
|
|
config.environment["CLANG_NO_DEFAULT_CONFIG"] = "1"
|