Closed paranlee closed 1 year ago
I'm not sure if it's covered by the pre-commit already. @honggyukim ?
I think we better not to provide this way. It’s because we can use the same clang-format version under pre-commit but there is no way to set the same version with manual installation. If the clang-format is different then it could possibly apply different coding style.
We have used prehook. There are clang-format stage.
In my opinion, It would be nice to have something on the guide about preparing for git-clang-format. I think this way of format checking is more faster to developer. :) like Linux Kernel scripts/checkpatch.pl
I tested with my rpi4.