-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.clang-format
35 lines (28 loc) · 949 Bytes
/
.clang-format
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
BasedOnStyle: LLVM
BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Attach
AllowShortBlocksOnASingleLine: false
AllowShortFunctionsOnASingleLine: false
AlignEscapedNewlinesLeft: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakBeforeMultilineStrings: false
UseTab: Always
IndentWidth: 8
TabWidth: 8
ColumnLimit: 80
# TODO: Do not apply in initializers! a = {1, 2} is (badly) also indented
ContinuationIndentWidth: 16
#
# Penalties
#
# Penalty for putting the return type of a function onto its own line.
PenaltyReturnTypeOnItsOwnLine: 0
# The penalty for breaking a function call after “call(”.
PenaltyBreakBeforeFirstCallParameter: 10
# The penalty for each line break introduced inside a comment.
PenaltyBreakComment: 00
#The penalty for each line break introduced inside a string literal.
PenaltyBreakString: 100
# The penalty for each character outside of the column limit.
PenaltyExcessCharacter: 1000