[libcxx-commits] [libcxx] Add pre-commit hooks and git config for libc++ & git-clang-format. (PR #73798)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 29 06:48:12 PST 2023


================
@@ -0,0 +1,31 @@
+#!/bin/bash
----------------
ldionne wrote:

Could we reuse the same script we use in the CI job instead? In `.github/workflows/pr-code-format.yml`, we use `code-format-tools/llvm/utils/git/code-format-helper.py`. If we reused it, it would also solve the problem of formatting our Python files and would ensure that they don't get out of sync.

I would also suggest that this can be done LLVM-wide -- this really shouldn't be libc++ specific since we're doing the same thing as the rest of the monorepo. CC @tru

https://github.com/llvm/llvm-project/pull/73798


More information about the libcxx-commits mailing list