style: 增加一些 clang-format 15 新配置

This commit is contained in:
zzyyyl
2022-09-08 19:59:30 +08:00
parent 3de7b3409c
commit 0817a9e57c

View File

@@ -105,7 +105,7 @@ IndentCaseBlocks: false
IndentGotoLabels: true
IndentPPDirectives: None
IndentExternBlock: AfterExternBlock
IndentRequires: false
IndentRequiresClause: false
IndentWidth: 4
IndentWrappedFunctionNames: false
InsertTrailingCommas: None
@@ -137,7 +137,7 @@ PPIndentWidth: -1
ReferenceAlignment: Pointer
ReflowComments: true
RemoveBracesLLVM: false
# RequiresClausePosition: OwnLine # clang-format 15
RequiresClausePosition: OwnLine
SeparateDefinitionBlocks: Leave
ShortNamespaceLines: 50
SortIncludes: CaseSensitive
@@ -159,6 +159,8 @@ SpaceBeforeParensOptions:
AfterFunctionDeclarationName: false
AfterIfMacros: true
AfterOverloadedOperator: false
AfterRequiresInClause: true
AfterRequiresInExpression: true
BeforeNonEmptyParentheses: false
SpaceAroundPointerQualifiers: Default
SpaceBeforeRangeBasedForLoopColon: true