Enable clang-format preupload hook
Some components may have to fall back on C/C++, enable format checking
for them.
Test: N/A
Change-Id: I81caa73457c0eb6846d1621fcdeffced1207bff6
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index 374db91..9b96f36 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -1,7 +1,9 @@
[Builtin Hooks]
+clang_format = true
rustfmt = true
[Builtin Hooks Options]
+clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
rustfmt = --config-path=rustfmt.toml
[Hook Scripts]