3 ms·
Having a company wide git hook for clang-format-diff [1] really solves a lot of problems. No unrelated linting changes (unless people don't know how to use thei
by sebcat 9y ago
Having a company wide git hook for clang-format-diff [1] really solves a lot of problems. No unrelated linting changes (unless people don't know how to use their editor, but that gets caught in code review and people learn) and consistency is kept with very little man-hours spent. Proper tooling applied pragmatically is nice.
[1] http://clang.llvm.org/docs/ClangFormat.html#script-for-patch-reformatting http://clang.llvm.org/docs/ClangFormat.html#script-for-patch...