From 0817a9e57c4ae96c48dc380a5ca97dcda8feceb5 Mon Sep 17 00:00:00 2001 From: zzyyyl Date: Thu, 8 Sep 2022 19:59:30 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=20clang-format=2015=20=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .clang-format | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.clang-format b/.clang-format index 39a9c475e1..7c1ba12eba 100644 --- a/.clang-format +++ b/.clang-format @@ -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