Files
kernel_google_redbull/PREUPLOAD.cfg
Wei Wang d4640a23c1 PREUPLOAD: Add clang-format
upstream already introduced clang-format in
commit d4ef8d3ff0 ("clang-format: add configuration file")

Test: hook works
Bug: 146374327
Change-Id: Ic3a7e4b66370ce296e8f4c2734917c8076aaac4a
Signed-off-by: Wei Wang <wvw@google.com>
(cherry picked from commit 736d50d11f5c8f19e1706101a7934d932c79e5c5)
2020-05-30 01:54:01 +08:00

9 lines
256 B
INI

[Builtin Hooks]
clang_format = true
[Builtin Hooks Options]
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
[Hook Scripts]
checkpatch_hook = ${REPO_ROOT}/build/static_analysis/checkpatch.sh --git_sha1 ${PREUPLOAD_COMMIT}