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

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

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

AlignConsecutiveAssignments: Consecutive
AlignEscapedNewlines: LeftWithLastLine
AlignTrailingComments: Leave

BreakConstructorInitializers: AfterColon

PackConstructorInitializers: Never

SpaceAfterCStyleCast: true
SpaceBeforeParens: Custom
SpaceBeforeParensOptions:
  AfterPlacementOperator: false
  AfterControlStatements: true

BreakBeforeBraces: Custom
BraceWrapping:
  AfterControlStatement: Never