Add PREUPLOAD to require clang-format.

Also move .clang-format to top of repo.

Test: N/A
Change-Id: I1d25c570bd4975a63fff88ef0b79057fe88f8848
This commit is contained in:
Shawn Willden 2017-12-03 15:24:54 -07:00
parent 0e69ef0c0f
commit f62a22e735
2 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