Precommit: Add work-around for clang-format's excessive memory usage

This commit is contained in:
Ole Schütt 2025-03-01 11:14:49 +01:00 committed by Ole Schütt
parent 91dec94404
commit eced570b41
6 changed files with 34 additions and 4 deletions

2
tools/precommit/precommit_server.py Executable file → Normal file
View file

@ -51,7 +51,7 @@ def mdformat():
# ======================================================================================
@app.route("/clangformat", methods=["POST"])
def clangformat():
return run_tool(["clang-format", "--style=llvm", "-i"])
return run_tool(["clang_format_wrapper.sh"])
# ======================================================================================