summaryrefslogtreecommitdiff
path: root/.clang-format
blob: 99ffd273b3da37dca20e85fd52b1a94d1530f6b3 (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
---
BasedOnStyle: Mozilla
AccessModifierOffset: '0'

AlignAfterOpenBracket:        Align
AlignArrayOfStructures:       Left
AlignConsecutiveBitFields:    AcrossEmptyLines
AlignConsecutiveMacros:       true
AlignConsecutiveAssignments:  true
AlignConsecutiveDeclarations: true
AlignEscapedNewlines:         Left
AlignOperands:                true
AlignTrailingComments:        true

AllowAllArgumentsOnNextLine:               false
AllowAllConstructorInitializersOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false

AllowShortBlocksOnASingleLine:       Always
AllowShortCaseLabelsOnASingleLine:   true
AllowShortEnumsOnASingleLine:        true
AllowShortFunctionsOnASingleLine:    All
AllowShortIfStatementsOnASingleLine: Always
AllowShortLambdasOnASingleLine:      All
AllowShortLoopsOnASingleLine:        true

AlwaysBreakAfterDefinitionReturnType: All
AlwaysBreakAfterReturnType:           AllDefinitions
AlwaysBreakTemplateDeclarations:      Yes

BinPackArguments:  false
BinPackParameters: false

BitFieldColonSpacing: Both

BraceWrapping:
  AfterCaseLabel:        true
  AfterClass:            true
  AfterControlStatement: true
  AfterEnum:             true
  AfterExternBlock:      true
  AfterFunction:         true
  AfterNamespace:        true
  AfterStruct:           true
  AfterUnion:            true
  BeforeCatch:           false
  BeforeElse:            false
  BeforeLambdaBody:      true
  BeforeWhile:           false
  IndentBraces:          false
  SplitEmptyFunction:    false
  SplitEmptyNamespace:   false

BreakBeforeBinaryOperators:  None
BreakBeforeBraces:           Custom
BreakBeforeTernaryOperators: true
BreakStringLiterals:         false

ColumnLimit: 112
CompactNamespaces: false
IncludeBlocks: Preserve
IndentPPDirectives: AfterHash
IndentWidth: 4
KeepEmptyLinesAtTheStartOfBlocks: false
Language: Cpp
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
PointerAlignment: Right
QualifierAlignment: Right
ReflowComments: false

SortIncludes:          Never
SortUsingDeclarations: true

SpaceAfterCStyleCast:              false
SpaceAfterLogicalNot:              false
SpaceAfterTemplateKeyword:         false
SpaceBeforeAssignmentOperators:    true
SpaceBeforeCtorInitializerColon:   true
SpaceBeforeInheritanceColon:       true
SpaceBeforeParens:                 Never
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses:           false
SpacesInAngles:                    false
SpacesInCStyleCastParentheses:     false
SpacesInContainerLiterals:         false
SpacesInParentheses:               false
SpacesInSquareBrackets:            false

TabWidth: 4
UseTab: ForIndentation
...