clang-format

This commit is contained in:
James Cherry
2020-04-11 21:32:05 -07:00
parent 1623486428
commit ba3f150367

View File

@@ -1,16 +1,22 @@
Language: Cpp Language: Cpp
BasedOnStyle: Google BasedOnStyle: Google
AlignOperands: false AlignOperands: false
AllowAllArgumentsOnNextLine: false
AllowAllConstructorInitializersOnNextLine: false AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false AllowAllParametersOfDeclarationOnNextLine: false
AllowShortFunctionsOnASingleLine: InlineOnly AllowShortIfStatementsOnASingleLine: Never
AlwaysBreakAfterReturnType: TopLevel AlwaysBreakAfterReturnType: TopLevel
# fails # fails
BinPackParameters: false BinPackParameters: false
BinPackArguments: false
BraceWrapping: BraceWrapping:
AfterClass: true AfterClass: true
AfterStruct: true AfterStruct: true
AfterFunction: true AfterFunction: true
BeforeElse: true
BreakBeforeBraces: Custom BreakBeforeBraces: Custom
# fails # fails if all initializers fit on one line
BreakConstructorInitializers: AfterColon BreakConstructorInitializers: AfterColon
# fails
ConstructorInitializerAllOnOneLineOrOnePerLine: false
IncludeBlocks: Preserve