Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c2ace9eb authored by Jiwen 'Steve' Cai's avatar Jiwen 'Steve' Cai Committed by Jiwen Cai
Browse files

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
parent e3dde7a1
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
[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/"