diff options
author | Yuexi Ma <yuexima@google.com> | 2017-05-05 00:46:40 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-05-05 00:46:42 +0000 |
commit | c2cf5485abb578c87db3f182579427d79be4876c (patch) | |
tree | af2fac9caf461058f25b3a1352afc15661c4f63d | |
parent | 7b68a77a3ae891279f667ef242906d7c105f5d7e (diff) | |
parent | 3e89323bdd4e000e711b3ddf8d96c8a42aea5d8e (diff) | |
download | performance-c2cf5485abb578c87db3f182579427d79be4876c.tar.gz |
Merge "Add pre-upload style checker for cpp and java code"
-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 + |