aboutsummaryrefslogtreecommitdiffstats
path: root/.clang-format
blob: b1f8727f7b8ede49868b7fe9d0a0067983851d54 (plain) (blame)
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
TabWidth: 8
IndentWidth: 8
PPIndentWidth: -1
UseTab: AlignWithSpaces
IndentPPDirectives: AfterHash
ColumnLimit: 100
AccessModifierOffset: -8
IndentRequiresClause: false
RequiresClausePosition: OwnLine
ContinuationIndentWidth: 8

ReflowComments: Always

SeparateDefinitionBlocks: Leave
AllowShortFunctionsOnASingleLine: None
AllowShortLambdasOnASingleLine: Inline

BreakConstructorInitializers: BeforeComma
ConstructorInitializerIndentWidth: 8

BreakAfterReturnType: Automatic
PenaltyReturnTypeOnItsOwnLine: 0
BreakTemplateDeclarations: Yes

ForEachMacros:
  - SECTION
  - GIVEN
  - AND_GIVEN
  - THEN
  - AND_THEN
  - WHEN
  - AND_WHEN

BracedInitializerIndentWidth: 8
BreakBeforeBraces: Custom
BraceWrapping:
  AfterCaseLabel: false
  AfterClass: true
  AfterControlStatement: Never
  AfterEnum: true
  AfterFunction: true
  AfterNamespace: false
  AfterStruct: true
  AfterUnion: true
  AfterExternBlock: false
  BeforeCatch: false
  BeforeElse: false
  BeforeLambdaBody: false
  SplitEmptyNamespace: true
  SplitEmptyRecord: true

NamespaceIndentation: None
FixNamespaceComments: true
#WrapNamespaceBodyWithEmptyLines: Always

AlignArrayOfStructures: Left
AlignConsecutiveBitFields: true
AlignConsecutiveDeclarations: Consecutive
AlignConsecutiveMacros: Consecutive
AlignConsecutiveShortCaseStatements:
  Enabled: true
AlignEscapedNewlines: LeftWithLastLine
AlignOperands: AlignAfterOperator
BreakBeforeBinaryOperators: None