summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernie Innocenti <codewiz@google.com>2019-02-20 18:03:04 -0800
committerandroid-build-merger <android-build-merger@google.com>2019-02-20 18:03:04 -0800
commit2dc46372a12fb52177e52906ee18d5370e890e01 (patch)
tree4db6a3fa62968adcd6188be37b0a1f644a0af2a7
parent7a93c2f37459ee63b14ae02de9c6e2a9adf8f544 (diff)
parent98acc3d25cd32af8d5b8e5bf760842fe5b9672f2 (diff)
downloadapf-2dc46372a12fb52177e52906ee18d5370e890e01.tar.gz
Enable the clang-format hook for hardware/google/apf am: 2af4ba42b5 am: 39492ba12d
am: 98acc3d25c Change-Id: Iea9148ec580b54b28736d2ac7583caa90e122252
l---------.clang-format1
l---------.editorconfig1
-rw-r--r--PREUPLOAD.cfg5
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