skypjack 1 месяц назад
Родитель
Сommit
d552039b95
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      .clang-format

+ 5 - 0
.clang-format

@@ -3,6 +3,7 @@ BasedOnStyle: llvm
 AccessModifierOffset: -4
 AccessModifierOffset: -4
 AlignEscapedNewlines: DontAlign
 AlignEscapedNewlines: DontAlign
 AllowShortBlocksOnASingleLine: Always
 AllowShortBlocksOnASingleLine: Always
+AllowShortCompoundRequirementOnASingleLine: true
 AllowShortEnumsOnASingleLine: true
 AllowShortEnumsOnASingleLine: true
 AllowShortFunctionsOnASingleLine: Empty
 AllowShortFunctionsOnASingleLine: Empty
 AllowShortIfStatementsOnASingleLine: WithoutElse
 AllowShortIfStatementsOnASingleLine: WithoutElse
@@ -10,6 +11,7 @@ AllowShortLambdasOnASingleLine: All
 AllowShortLoopsOnASingleLine: true
 AllowShortLoopsOnASingleLine: true
 AlwaysBreakTemplateDeclarations: Yes
 AlwaysBreakTemplateDeclarations: Yes
 BreakBeforeBinaryOperators: NonAssignment
 BreakBeforeBinaryOperators: NonAssignment
+BreakBeforeConceptDeclarations: Always
 BreakBeforeTernaryOperators: true
 BreakBeforeTernaryOperators: true
 ColumnLimit: 0
 ColumnLimit: 0
 DerivePointerAlignment: false
 DerivePointerAlignment: false
@@ -26,10 +28,13 @@ IncludeCategories:
     Priority: 5
     Priority: 5
 IncludeIsMainRegex: "^$"
 IncludeIsMainRegex: "^$"
 IndentPPDirectives: AfterHash
 IndentPPDirectives: AfterHash
+IndentRequiresClause: false
 IndentWidth: 4
 IndentWidth: 4
 KeepEmptyLinesAtTheStartOfBlocks: false
 KeepEmptyLinesAtTheStartOfBlocks: false
 Language: Cpp
 Language: Cpp
 PointerAlignment: Right
 PointerAlignment: Right
+RequiresClausePosition: OwnLine
+RequiresExpressionIndentation: OuterScope
 SpaceAfterCStyleCast: false
 SpaceAfterCStyleCast: false
 SpaceAfterTemplateKeyword: false
 SpaceAfterTemplateKeyword: false
 SpaceAroundPointerQualifiers: After
 SpaceAroundPointerQualifiers: After