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
---
AlignAfterOpenBracket: Align
AlignOperands: AlignAfterOperator
AllowAllArgumentsOnNextLine: false
AllowShortBlocksOnASingleLine: Never
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
BasedOnStyle: LLVM
BinPackArguments: false
BinPackParameters: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Allman
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: AfterColon
ColumnLimit: 120
ConstructorInitializerAllOnOneLineOrOnePerLine: true
@ -12,6 +19,7 @@ ConstructorInitializerIndentWidth : 2
ContinuationIndentWidth: 2
MaxEmptyLinesToKeep: 2
PointerAlignment: Middle
SortIncludes: false
SpacesInAngles: true
SpacesInParentheses: true
...