From 589c3e5024dc557d20148caee0bf693b545a00fb Mon Sep 17 00:00:00 2001 From: James Cherry Date: Sun, 19 Apr 2020 10:20:47 -0700 Subject: [PATCH] clang format --- .clang-format | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index 64df85bb..a6c3ab9e 100644 --- a/.clang-format +++ b/.clang-format @@ -1,3 +1,5 @@ +# This is "close" to correct but has a number of bugs that prevent +# using it on the source tree. Language: Cpp BasedOnStyle: Google AlignOperands: false @@ -5,10 +7,11 @@ AllowAllArgumentsOnNextLine: false AllowAllConstructorInitializersOnNextLine: false AllowAllParametersOfDeclarationOnNextLine: false AllowShortIfStatementsOnASingleLine: Never +AllowShortLoopsOnASingleLine: false AlwaysBreakAfterReturnType: TopLevel +BinPackArguments: false # fails BinPackParameters: false -BinPackArguments: false BraceWrapping: AfterClass: true AfterStruct: true @@ -17,6 +20,8 @@ BraceWrapping: BreakBeforeBraces: Custom # fails if all initializers fit on one line BreakConstructorInitializers: AfterColon +ColumnLimit: 0 # fails ConstructorInitializerAllOnOneLineOrOnePerLine: false +ConstructorInitializerIndentWidth: 2 IncludeBlocks: Preserve