Set up a clang-format pre-commit hook for C and C++
Formatting comments are the cheapest part of a code review to get rid of. A pre-commit hook runs clang-format on the files in each commit, so badly formatted code never reaches a pull request, and CI stops failing for a missing space.
With the pre-commit framework, nobody on the team has to install LLVM, and everyone gets the same clang-format version.