From c6df1b387cfe3f021704a3fd722578d55eb9d420 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" <justinkz@gmail.com> Date: Wed, 2 Mar 2016 02:14:15 -0500 Subject: [PATCH] clang-format configuration Recommend by oni-link at: https://github.com/neovim/neovim/pull/487#issuecomment-39935391 --- src/.clang-format | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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