clang format

This commit is contained in:
James Cherry
2020-04-19 10:20:47 -07:00
parent b104aa7138
commit 589c3e5024

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 Language: Cpp
BasedOnStyle: Google BasedOnStyle: Google
AlignOperands: false AlignOperands: false
@@ -5,10 +7,11 @@ AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false AllowAllParametersOfDeclarationOnNextLine: false
AllowShortIfStatementsOnASingleLine: Never AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: TopLevel AlwaysBreakAfterReturnType: TopLevel
BinPackArguments: false
# fails # fails
BinPackParameters: false BinPackParameters: false
BinPackArguments: false
BraceWrapping: BraceWrapping:
AfterClass: true AfterClass: true
AfterStruct: true AfterStruct: true
@@ -17,6 +20,8 @@ BraceWrapping:
BreakBeforeBraces: Custom BreakBeforeBraces: Custom
# fails if all initializers fit on one line # fails if all initializers fit on one line
BreakConstructorInitializers: AfterColon BreakConstructorInitializers: AfterColon
ColumnLimit: 0
# fails # fails
ConstructorInitializerAllOnOneLineOrOnePerLine: false ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 2
IncludeBlocks: Preserve IncludeBlocks: Preserve