Add Hook Options for clang-format

This allows individual projects to enable clang-format pre-upload hook
without worrying about the paths of the various tools.

Bug: 26800693
Test: Added a PREUPLOAD.cfg in external/minijail, got a warning.
Change-Id: Ia9ee738ad3305934e8e6ca50261f96ca3ab30852
This commit is contained in:
Luis Hector Chavez 2016-10-14 10:15:24 -07:00
parent 703c93691f
commit 162f854d3f
1 changed files with 4 additions and 0 deletions

View File

@ -4,3 +4,7 @@
[Builtin Hooks]
commit_msg_test_field = true
[Tool Paths]
clang-format = ${REPO_ROOT}/prebuilts/clang/host/${BUILD_OS}/clang-stable/bin/clang-format
git-clang-format = ${REPO_ROOT}/prebuilts/clang/host/${BUILD_OS}/clang-stable/bin/git-clang-format