summaryrefslogtreecommitdiffstats
path: root/.clang-format
blob: b1a0d2b7de189222f7f4b2e40520b904eb9cef10 (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
BasedOnStyle: LLVM

# Whitespace
MaxEmptyLinesToKeep: 2
IndentWidth: 4
ColumnLimit: 100

# Preprocessor
AlignEscapedNewlines: Left
IncludeBlocks: Regroup

# Functions
AllowAllArgumentsOnNextLine: false
BinPackArguments: false
BinPackParameters: false
AllowAllParametersOfDeclarationOnNextLine: false
PenaltyReturnTypeOnItsOwnLine: 9999999
PenaltyBreakBeforeFirstCallParameter: 6
AllowShortFunctionsOnASingleLine: Inline

# Brackets and braces
AlignAfterOpenBracket: AlwaysBreak
BreakBeforeBraces: Allman

# Pointers
PointerAlignment: Left

# Classes
PackConstructorInitializers: NextLineOnly
BreakConstructorInitializers: BeforeComma
AccessModifierOffset: -4

# Switch statements
IndentCaseBlocks: true

# Templates
SpaceAfterTemplateKeyword: false
AlwaysBreakTemplateDeclarations: true

# Misc
SortUsingDeclarations: false