aboutsummaryrefslogtreecommitdiff
path: root/common/home/mosder/.clang-format
blob: 147de9ed08326c87e0c9e86052d140139a0aef75 (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
# Indentation
IndentWidth: 4
ContinuationIndentWidth: 4
UseTab: Never
IndentCaseLabels: true

# Pointer alignment
PointerAlignment: Right

# Braces alignment
SpaceBeforeParens: ControlStatements
AlignAfterOpenBracket: BlockIndent
AllowShortFunctionsOnASingleLine: false
BreakBeforeBraces: Custom
BraceWrapping:
    AfterCaseLabel: false
    AfterControlStatement: Never
    AfterEnum: false
    AfterFunction: false
    AfterNamespace: false
    AfterStruct: false
    AfterUnion: false
    BeforeElse: true
    BeforeWhile: false

# Column limit
ColumnLimit: 160

# Max empty lines
MaxEmptyLinesToKeep: 1