Files
clang-p2996/llvm/test/CodeGen/M68k/lit.local.cfg
Tobias Hieta f84bac329b [NFC][Py Reformat] Reformat lit.local.cfg python files in llvm
This is a follow-up to b71edfaa4e
since I forgot the lit.local.cfg files in that one.

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: barannikov88, kwk

Differential Revision: https://reviews.llvm.org/D150762
2023-05-17 17:03:15 +02:00

21 lines
454 B
INI

import os
config.suffixes = [".ll", ".mir", ".test", ".txt"]
extract_section_path = os.path.join(config.llvm_src_root, "utils", "extract-section.py")
config.substitutions.append(
(
"extract-section",
"'%s' %s %s"
% (
config.python_executable,
extract_section_path,
"--byte-indicator --hex-width=2",
),
)
)
if not "M68k" in config.root.targets:
config.unsupported = True