aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
blob: e54cb0340140b24143c40ae85d5be9803f460d1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
---
AccessModifierOffset: "-2"
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments:
  Enabled: false
  AcrossEmptyLines: false
  AcrossComments: false
  AlignCompound: false
  AlignFunctionPointers: false
  PadOperators: true
AlignConsecutiveDeclarations:
  Enabled: false
  AcrossEmptyLines: false
  AcrossComments: false
  AlignCompound: false
  AlignFunctionPointers: false
  PadOperators: true
AlignEscapedNewlines: LeftWithLastLine
AlignTrailingComments: "true"
AllowAllParametersOfDeclarationOnNextLine: "true"
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: "false"
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: "false"
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakTemplateDeclarations: "true"
BinPackArguments: "true"
BinPackParameters: "true"
BreakBeforeBraces: Custom
BraceWrapping:
  AfterClass: "true"
  AfterControlStatement: "true"
  AfterEnum: "true"
  AfterFunction: "true"
  AfterNamespace: "true"
  AfterStruct: "true"
  AfterUnion: "true"
  AfterExternBlock: "true"
  BeforeCatch: "true"
  BeforeElse: "true"
  IndentBraces: "false"
  AfterCaseLabel: true
  SplitEmptyFunction: false
  SplitEmptyRecord: true
  SplitEmptyNamespace: true
BreakBeforeInheritanceComma: "false"
BreakConstructorInitializers: BeforeComma
BreakStringLiterals: "true"
ColumnLimit: "120"
CompactNamespaces: "false"
Cpp11BracedListStyle: "true"
DerivePointerAlignment: "false"
FixNamespaceComments: "true"
IncludeBlocks: Regroup
IncludeCategories:
  - Regex: 'kapi/[[:alnum:]._\/]+\.hpp'
    Priority: 100
  - Regex: 'x86_64/[[:alnum:]._\/]+\.hpp'
    Priority: 110
  - Regex: '"[[:alnum:]._\/]+\.hpp"'
    Priority: 300
  - Regex: '<kstd/[[:alnum:]._\/]+>'
    Priority: 400
  - Regex: '<[[:alnum:]._\/]+\.hpp>'
    Priority: 600
  - Regex: '<[[:alnum:]._]+(?!\.(h|hpp))>'
    Priority: 900
IndentCaseLabels: "true"
IndentPPDirectives: None
IndentWidth: "2"
KeepEmptyLinesAtTheStartOfBlocks: "false"
Language: Cpp
MaxEmptyLinesToKeep: "1"
NamespaceIndentation: All
PointerAlignment: Middle
ReflowComments: "true"
SortIncludes: "true"
SortUsingDeclarations: "true"
SpaceAfterCStyleCast: "false"
SpaceAfterTemplateKeyword: "false"
SpaceBeforeAssignmentOperators: "true"
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: "false"
SpacesBeforeTrailingComments: "2"
SpacesInAngles: "false"
SpacesInContainerLiterals: "false"
SpacesInCStyleCastParentheses: "false"
SpacesInParentheses: "false"
SpacesInSquareBrackets: "false"
Standard: Latest
TabWidth: "2"
UseTab: Never
AlignArrayOfStructures: Right
AlignConsecutiveBitFields: {}
AllowAllArgumentsOnNextLine: false
AllowBreakBeforeNoexceptSpecifier: Never
AllowShortCaseExpressionOnASingleLine: false
AllowShortCompoundRequirementOnASingleLine: true
AllowShortEnumsOnASingleLine: false
AllowShortLambdasOnASingleLine: Inline
BitFieldColonSpacing: Both
BracedInitializerIndentWidth: 2
IntegerLiteralSeparator:
  Binary: 4
  BinaryMinDigits: 8
  Decimal: 3
  DecimalMinDigits: 6
  Hex: 4
  HexMinDigits: 8
QualifierAlignment: Custom
QualifierOrder:
  - constexpr
  - type
  - static
  - inline
  - const
SpaceBeforeRangeBasedForLoopColon: true
SpaceBeforeSquareBrackets: false