diff options
author | Bernie Innocenti <codewiz@google.com> | 2019-02-12 14:53:23 +0900 |
---|---|---|
committer | Bernie Innocenti <codewiz@google.com> | 2019-02-14 18:47:47 +0900 |
commit | 2af4ba42b5e3e9e16765979d169c7c6fe49e603d (patch) | |
tree | 4db6a3fa62968adcd6188be37b0a1f644a0af2a7 | |
parent | d0174a67d84fa325547e73652078a3358c1fd78e (diff) | |
download | apf-2af4ba42b5e3e9e16765979d169c7c6fe49e603d.tar.gz |
Enable the clang-format hook for hardware/google/apf
Change-Id: Ia98bf4f7e030541e1062effb8ba2ab8fd6e6050e
l--------- | .clang-format | 1 | ||||
l--------- | .editorconfig | 1 | ||||
-rw-r--r-- | PREUPLOAD.cfg | 5 |
3 files changed, 7 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 120000 index 0000000..973b2fa --- /dev/null +++ b/.clang-format @@ -0,0 +1 @@ +../../../build/soong/scripts/system-clang-format
\ No newline at end of file diff --git a/.editorconfig b/.editorconfig new file mode 120000 index 0000000..940ef35 --- /dev/null +++ b/.editorconfig @@ -0,0 +1 @@ +../../../system/netd/.editorconfig
\ No newline at end of file diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg new file mode 100644 index 0000000..c8dbf77 --- /dev/null +++ b/PREUPLOAD.cfg @@ -0,0 +1,5 @@ +[Builtin Hooks] +clang_format = true + +[Builtin Hooks Options] +clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp |