aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
blob: f8821e30abb322f47973956e4f3086febc97eb07 (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
---
# BasedOnStyle: LLVM
---

Language: Cpp

# PPIndentWidth: 1  # clang-format 13 only

IndentWidth: 4
TabWidth: 4
UseTab: Never

ColumnLimit: 100

DerivePointerAlignment: false
PointerAlignment: Right

AlignConsecutiveDeclarations: Consecutive
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: Consecutive
# AlignArrayOfStructures: Left  # clang-format 13 only
AlignEscapedNewlines: Left
AlignTrailingComments: true
AlignAfterOpenBracket: Align

AlwaysBreakAfterDefinitionReturnType: All
AlwaysBreakAfterReturnType: All

SpaceBeforeParens: ControlStatements

AllowShortFunctionsOnASingleLine: None
AllowShortBlocksOnASingleLine: Never
AllowShortIfStatementsOnASingleLine: Never

AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true

AlwaysBreakBeforeMultilineStrings: false

BinPackArguments: false
BinPackParameters: false

BreakBeforeBraces: Allman
BreakBeforeTernaryOperators: true

IncludeBlocks: Merge

KeepEmptyLinesAtTheStartOfBlocks: false
MaxEmptyLinesToKeep: 1

PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakString: 1
PenaltyExcessCharacter: 1000

SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeSquareBrackets: false
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInSquareBrackets: false
SpaceAroundPointerQualifiers: Default

AlignOperands: Align

Cpp11BracedListStyle: true

# vim:ft=yaml