summaryrefslogtreecommitdiff
path: root/PREUPLOAD.cfg
diff options
context:
space:
mode:
authorJiwen 'Steve' Cai <jwcai@google.com>2018-09-26 13:52:16 -0700
committerSteven Moreland <smoreland@google.com>2018-12-11 11:31:05 -0800
commitbe448391234083f76570cca6c6bfdb1547f3f83c (patch)
treeed9aab7964e7bf80be5c457fad038c57d8467622 /PREUPLOAD.cfg
parenta5b8fd01ae80ae92c1cc74caa483c43c7e5fcc5a (diff)
downloadnative-be448391234083f76570cca6c6bfdb1547f3f83c.tar.gz
Enable clang-format on presubmit
This only applies to new CLs involving libs/{gui,ui,vr} and services/{surfaceflinger,vr} Test: repo upload . Change-Id: Ia65fb0c23ea1a258ee69dcd5e94d31623aee3101 Merged-In: Ia65fb0c23ea1a258ee69dcd5e94d31623aee3101
Diffstat (limited to 'PREUPLOAD.cfg')
-rw-r--r--PREUPLOAD.cfg12
1 files changed, 12 insertions, 0 deletions
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index 2d780f52f7..cd0fbd48cd 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -1,3 +1,15 @@
+[Builtin Hooks]
+clang_format = true
+
+[Builtin Hooks Options]
+# Only turn on clang-format check for the following subfolders.
+clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
+ libs/gui/
+ libs/ui/
+ libs/vr/
+ services/surfaceflinger/
+ services/vr/
+
[Hook Scripts]
owners_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "OWNERS$"
installd_hook = ${REPO_ROOT}/frameworks/base/tools/aosp/aosp_sha.sh ${PREUPLOAD_COMMIT} "^cmds/installd/"