Merge "Add a PREUPLOAD.cfg file to run git-clang-format on every commit"
This commit is contained in:
commit
59aea45254
2 changed files with 18 additions and 0 deletions
13
.clang-format
Normal file
13
.clang-format
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
BasedOnStyle: Google
|
||||||
|
AllowShortBlocksOnASingleLine: false
|
||||||
|
AllowShortFunctionsOnASingleLine: false
|
||||||
|
|
||||||
|
AccessModifierOffset: -2
|
||||||
|
ColumnLimit: 100
|
||||||
|
CommentPragmas: NOLINT:.*
|
||||||
|
DerivePointerAlignment: false
|
||||||
|
IndentWidth: 4
|
||||||
|
PointerAlignment: Left
|
||||||
|
TabWidth: 4
|
||||||
|
UseTab: Never
|
||||||
|
PenaltyExcessCharacter: 32
|
||||||
5
PREUPLOAD.cfg
Normal file
5
PREUPLOAD.cfg
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
[Builtin Hooks]
|
||||||
|
clang_format = true
|
||||||
|
|
||||||
|
[Builtin Hooks Options]
|
||||||
|
clang_format = --commit ${PREUPLOAD_COMMIT} --style file --extensions c,h,cc,cpp
|
||||||
Loading…
Add table
Reference in a new issue