Makefile: Extend file naming convention to include HIP

This commit is contained in:
Ole Schütt 2022-01-22 17:50:07 +01:00 committed by Ole Schütt
parent f45c38a8d6
commit 4444c6aef6
2 changed files with 31 additions and 56 deletions

View file

@ -187,9 +187,12 @@ def process_file(fn, allow_modifications):
run_local_tool("./tools/doxify/doxify.sh", fn)
run_prettify(fn)
if re.match(r".*\.(c|cu|cpp|cc|h|hpp)$", fn):
if re.match(r".*\.(c|cu|cc|h|hpp)$", fn):
run_remote_tool("clangformat", fn)
if re.match(r".*\.(cpp|cxx|hcc|hxx)$", fn):
raise Exception(f"File extension not supported by build system.")
if re.match(r"(.*/PACKAGE)|(.*\.py)$", fn):
ast.parse(orig_content, filename=fn)
run_remote_tool("black", fn)