diff options
author | Yuexi Ma <yuexima@google.com> | 2017-05-05 00:53:48 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-05-05 00:53:48 +0000 |
commit | 81a4f8657ecd1a3c2087783ee85edbb32a0f3f12 (patch) | |
tree | af2fac9caf461058f25b3a1352afc15661c4f63d | |
parent | 350e001447930ab293784fca4095de740710cfe5 (diff) | |
parent | 19d70201c475168e07a560821e02cbe7fd1eda6b (diff) | |
download | performance-81a4f8657ecd1a3c2087783ee85edbb32a0f3f12.tar.gz |
Merge "Add pre-upload style checker for cpp and java code" am: c2cf5485ab
am: 19d70201c4
Change-Id: I6990198c96038e89c877b6565a145f4e2b45d20c
-rw-r--r-- | .clang-format | 13 | ||||
-rw-r--r-- | PREUPLOAD.cfg | 6 |
2 files changed, 19 insertions, 0 deletions
diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..6027082 --- /dev/null +++ b/.clang-format @@ -0,0 +1,13 @@ +--- +Language: Cpp +BasedOnStyle: Google +ColumnLimit: 80 +IndentWidth: 2 +ContinuationIndentWidth: 4 +--- +Language: Java +BasedOnStyle: Google +ColumnLimit: 100 +IndentWidth: 4 +ContinuationIndentWidth: 8 +... diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg new file mode 100644 index 0000000..6be6e5f --- /dev/null +++ b/PREUPLOAD.cfg @@ -0,0 +1,6 @@ +[Builtin Hooks] +clang_format = true + +[Builtin Hooks Options] +clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp,java + |