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

Will Hawkins via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 29 06:56:06 PST 2023


hawkinsw wrote:

> This seems really useful, but I think my main comment is that we should add this LLVM-wide, not make it libc++ specific. Folks are then free to use it or not, but it would be available for everyone.

Thank you, @EricWF , for making this PR. I wanted to have something similar, but it looks like you beat me to it.

Would there be interest in a set of scripts (in addition to this hook) that would allow a developer to manually invoke `clang-tidy` and `clang-format` with the proper configuration? I have a few helper scripts that I use and thought that others might like something similar.

If there is interest, I would be happy to work on it!

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


More information about the libcxx-commits mailing list