format:update clang-format

This commit is contained in:
xiaoyifang 2022-02-13 01:07:39 +08:00
parent 801fbe445b
commit 2ef3c560a7

View file

@ -1,10 +1,17 @@
# Format Style Options - Created with Clang Power Tools # Format Style Options - Created with Clang Power Tools
--- ---
AlignAfterOpenBracket: Align
AlignOperands: AlignAfterOperator
AllowAllArgumentsOnNextLine: false
AllowShortBlocksOnASingleLine: Never
AllowShortFunctionsOnASingleLine: None AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
BasedOnStyle: LLVM BasedOnStyle: LLVM
BinPackArguments: false BinPackArguments: false
BinPackParameters: false BinPackParameters: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Allman BreakBeforeBraces: Allman
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: AfterColon BreakConstructorInitializers: AfterColon
ColumnLimit: 120 ColumnLimit: 120
ConstructorInitializerAllOnOneLineOrOnePerLine: true ConstructorInitializerAllOnOneLineOrOnePerLine: true
@ -12,6 +19,7 @@ ConstructorInitializerIndentWidth : 2
ContinuationIndentWidth: 2 ContinuationIndentWidth: 2
MaxEmptyLinesToKeep: 2 MaxEmptyLinesToKeep: 2
PointerAlignment: Middle PointerAlignment: Middle
SortIncludes: false
SpacesInAngles: true SpacesInAngles: true
SpacesInParentheses: true SpacesInParentheses: true
... ...