clang format

This commit is contained in:
James Cherry 2020-04-19 10:20:47 -07:00
parent b104aa7138
commit 589c3e5024
1 changed files with 6 additions and 1 deletions

View File

@ -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