Browse Source

Update with doc

Kajetan Johannes Hammerle 1 month ago
parent
commit
0794ec40d1
1 changed files with 22 additions and 2 deletions
  1. 22 2
      cpp-format

+ 22 - 2
cpp-format

@@ -3,6 +3,7 @@ UseTab: Never
 IndentWidth: 4
 TabWidth: 4
 AllowShortIfStatementsOnASingleLine: false
+AllowShortBlocksOnASingleLine: Empty
 ColumnLimit: 80
 AccessModifierOffset: -4
 PointerAlignment: Left
@@ -15,7 +16,7 @@ FixNamespaceComments: false
 AllowShortCaseLabelsOnASingleLine: true
 IndentCaseLabels: true
 IndentCaseBlocks: false
-IncludeBlocks:   Regroup
+IncludeBlocks: Regroup
 IncludeCategories:
   - Regex:           '^<.*\.h>'
     Priority:        2
@@ -25,4 +26,23 @@ IncludeCategories:
     SortPriority:    0
   - Regex:           '.*'
     Priority:        3
-    SortPriority:    0
+    SortPriority:    0
+AlignAfterOpenBracket: AlwaysBreak
+AlignEscapedNewlines: LeftWithLastLine
+AlwaysBreakBeforeMultilineStrings: true
+BreakAfterReturnType: Automatic
+BreakConstructorInitializers: AfterColon
+BreakInheritanceList: AfterColon
+IntegerLiteralSeparator:
+  Binary: 4
+  BinaryMinDigits: 8
+  Decimal: 3
+  DecimalMinDigits: 5
+  Hex: 4
+  HexMinDigits: 8
+KeepEmptyLines:
+  AtEndOfFile: false
+  AtStartOfBlock: false
+  AtStartOfFile: false
+LambdaBodyIndentation: OuterScope
+SeparateDefinitionBlocks: Always