lmkd: Add clang-format upload hook

Check code formatting on upload.

Bug: N/A
Test: repo upload
Signed-off-by: Kalesh Singh <kaleshsingh@google.com>
Change-Id: I7c849655539ac60e48cf2b4c25b33a1d222a6cfe
This commit is contained in:
Kalesh Singh 2022-07-14 11:03:48 -07:00
parent 14512ee7af
commit 08bb956823
1 changed files with 5 additions and 0 deletions

5
PREUPLOAD.cfg Normal file
View File

@ -0,0 +1,5 @@
[Builtin Hooks]
clang_format = true
[Builtin Hooks Options]
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp