Add openPMD output

This commit is contained in:
Franz Pöschel 2026-01-06 12:57:32 +01:00 committed by GitHub
parent 731b0ae562
commit 7c648bcc1f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 4258 additions and 245 deletions

View file

@ -225,11 +225,12 @@ def process_file(fn: str, allow_modifications: bool) -> None:
run_remote_tool("clangformat", fn)
if re.match(r".*\.(cc|cpp|cxx|hcc|hpp|hxx)$", fn):
if fn.endswith("/torch_c_api.cpp"):
# Begrudgingly tolerated because PyTorch has no C API.
run_remote_tool("clangformat", fn)
elif fn.endswith("/ace_c_api.cpp"):
# same as PyTorch
if (
fn.endswith("/torch_c_api.cpp")
or fn.endswith("/ace_c_api.cpp")
or fn.endswith("/openPMD.cpp")
):
# Begrudgingly tolerated because PyTorch/Ace/openPMD have no C API.
run_remote_tool("clangformat", fn)
else:
raise Exception(f"C++ is not supported.")