format:clang format update

This commit is contained in:
xiaoyifang 2022-02-13 11:57:59 +08:00
parent 2ef3c560a7
commit 59a9401f81
4 changed files with 22 additions and 17 deletions

View file

@ -1,25 +1,27 @@
# Format Style Options - Created with Clang Power Tools
--- ---
BasedOnStyle: LLVM
AlignAfterOpenBracket: Align AlignAfterOpenBracket: Align
AlignOperands: AlignAfterOperator AlignEscapedNewlines: Left
AllowAllArgumentsOnNextLine: false AllowAllArgumentsOnNextLine: 'false'
AllowShortBlocksOnASingleLine: Never AllowShortBlocksOnASingleLine: 'false'
AllowShortFunctionsOnASingleLine: None AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never AllowShortIfStatementsOnASingleLine: Never
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'
ConstructorInitializerIndentWidth : 2 ConstructorInitializerIndentWidth: '2'
ContinuationIndentWidth: 2 ContinuationIndentWidth: '2'
MaxEmptyLinesToKeep: 2 MaxEmptyLinesToKeep: '2'
PointerAlignment: Middle PointerAlignment: Middle
SortIncludes: false SortIncludes: 'false'
SpacesInAngles: true SortUsingDeclarations: 'false'
SpacesInParentheses: true SpaceBeforeParens: Never
SpacesInAngles: 'true'
SpacesInParentheses: 'true'
SpacesInSquareBrackets: 'true'
UseTab: Never
... ...

View file

@ -10,6 +10,7 @@ on:
- ".github/**" - ".github/**"
- "howto/**" - "howto/**"
- "*.md" - "*.md"
- ".clang-format"
pull_request: pull_request:
branches: branches:
- dev - dev

View file

@ -14,6 +14,7 @@ on:
- ".github/**" - ".github/**"
- "howto/**" - "howto/**"
- "*.md" - "*.md"
- ".clang-format"
pull_request: pull_request:
branches: branches:
- dev - dev

View file

@ -14,6 +14,7 @@ on:
- ".github/**" - ".github/**"
- "howto/**" - "howto/**"
- "*.md" - "*.md"
- ".clang-format"
pull_request: pull_request:
branches: branches:
- dev - dev