From f62a22e73543e74e77b98306d8fd7bc92fe58cf5 Mon Sep 17 00:00:00 2001 From: Shawn Willden Date: Sun, 3 Dec 2017 15:24:54 -0700 Subject: [PATCH] Add PREUPLOAD to require clang-format. Also move .clang-format to top of repo. Test: N/A Change-Id: I1d25c570bd4975a63fff88ef0b79057fe88f8848 --- keystore/.clang-format => .clang-format | 0 PREUPLOAD.cfg | 5 +++++ 2 files changed, 5 insertions(+) rename keystore/.clang-format => .clang-format (100%) create mode 100644 PREUPLOAD.cfg diff --git a/keystore/.clang-format b/.clang-format similarity index 100% rename from keystore/.clang-format rename to .clang-format diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg new file mode 100644 index 00000000..c8dbf77f --- /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