Prechádzať zdrojové kódy

clang-format: refine config

skypjack 1 mesiac pred
rodič
commit
9173c4d2f1
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      .clang-format

+ 4 - 1
.clang-format

@@ -11,6 +11,7 @@ AllowShortLambdasOnASingleLine: All
 AllowShortLoopsOnASingleLine: true
 AlwaysBreakTemplateDeclarations: Yes
 BreakBeforeBinaryOperators: NonAssignment
+BreakBeforeBraces: Attach
 BreakBeforeConceptDeclarations: Always
 BreakBeforeTernaryOperators: true
 ColumnLimit: 0
@@ -30,10 +31,12 @@ IncludeIsMainRegex: "^$"
 IndentPPDirectives: AfterHash
 IndentRequiresClause: false
 IndentWidth: 4
+InsertBraces: true
+InsertNewlineAtEOF: true
 KeepEmptyLinesAtTheStartOfBlocks: false
 Language: Cpp
 PointerAlignment: Right
-RequiresClausePosition: OwnLine
+RequiresClausePosition: OwnLineWithBrace
 RequiresExpressionIndentation: OuterScope
 SpaceAfterCStyleCast: false
 SpaceAfterTemplateKeyword: false