summaryrefslogtreecommitdiff
path: root/.clang-format
blob: 69b0b218cfa260bae0c1ca10413a58a964d705a7 (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
BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 127

AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortCaseLabelsOnASingleLine: true
AllowShortEnumsOnASingleLine: false

IndentCaseLabels: true
IndentExternBlock: NoIndent
IndentPPDirectives: BeforeHash
NamespaceIndentation: All
IndentAccessModifiers: false
AccessModifierOffset: -4

AlignConsecutiveAssignments: Consecutive
AlignEscapedNewlines: DontAlign
AlignTrailingComments: Leave

BreakConstructorInitializers: AfterColon

PackConstructorInitializers: Never

SpaceAfterCStyleCast: true
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
  AfterPlacementOperator: false

BreakBeforeBraces: Custom
BraceWrapping:
  AfterControlStatement: MultiLine