diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-03-02 02:14:15 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-03-02 23:56:38 -0500 |
commit | c6df1b387cfe3f021704a3fd722578d55eb9d420 (patch) | |
tree | aacbd6d76524b1ebf538653007f92cde329a362c /src | |
parent | 32238018e4d7fa617d291c916448f041da8aea35 (diff) | |
download | rneovim-c6df1b387cfe3f021704a3fd722578d55eb9d420.tar.gz rneovim-c6df1b387cfe3f021704a3fd722578d55eb9d420.tar.bz2 rneovim-c6df1b387cfe3f021704a3fd722578d55eb9d420.zip |
clang-format configuration
Recommend by oni-link at:
https://github.com/neovim/neovim/pull/487#issuecomment-39935391
Diffstat (limited to 'src')
-rw-r--r-- | src/.clang-format | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/.clang-format b/src/.clang-format index 35e545ac4b..5a910ff34b 100644 --- a/src/.clang-format +++ b/src/.clang-format @@ -1,4 +1,4 @@ -BasedOnStyle: llvm +BasedOnStyle: Google Language: Cpp ColumnLimit: 80 IndentWidth: 2 @@ -10,3 +10,9 @@ AlignEscapedNewlinesLeft: false AllowShortFunctionsOnASingleLine: false SpacesBeforeTrailingComments: 2 PenaltyReturnTypeOnItsOwnLine: 200 +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +BinPackParameters: false +BreakBeforeBinaryOperators: true +ContinuationIndentWidth: 4 |