Add a PREUPLOAD.cfg file to run git-clang-format on every commit
am: 1248411b83

Change-Id: Id2fbf009bfde904eb1a030ef8ee1cf0a4ec4dcc4
diff --git a/.clang-format b/.clang-format
new file mode 100644
index 0000000..a3a8e65
--- /dev/null
+++ b/.clang-format
@@ -0,0 +1,11 @@
+BasedOnStyle: Google
+
+AllowShortBlocksOnASingleLine: false
+AllowShortFunctionsOnASingleLine: false
+CommentPragmas: NOLINT:.*
+DerivePointerAlignment: false
+IndentWidth: 2
+PenaltyExcessCharacter: 32
+PointerAlignment: Right
+TabWidth: 2
+UseTab: Never
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
new file mode 100644
index 0000000..1b66f73
--- /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