-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
53 lines (46 loc) · 1.12 KB
/
.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
BasedOnStyle: WebKit
#
# easy ones
#
BreakBeforeBraces: Allman
ColumnLimit: 120
FixNamespaceComments: true
AlwaysBreakTemplateDeclarations: true
IndentCaseLabels: true
ConstructorInitializerIndentWidth: 0
SortIncludes: true
SortUsingDeclarations: true
NamespaceIndentation: None
#
# argument / parameter breaks
#
PenaltyBreakAssignment: 100
PenaltyExcessCharacter: 50
PenaltyReturnTypeOnItsOwnLine: 10000
PenaltyBreakFirstLessLess: 0
PenaltyBreakBeforeFirstCallParameter: 100000
BinPackParameters: false
BinPackArguments: false
AlignAfterOpenBracket: true
ExperimentalAutoDetectBinPacking: false
AllowAllParametersOfDeclarationOnNextLine: false
#
# spaces around braces, these settings give:
# vector<string> c { "a", "b", "c" };
#
SpaceBeforeCpp11BracedList: true
Cpp11BracedListStyle: false
#
# tricky ones
#
PointerAlignment: Middle
BreakBeforeTernaryOperators: true
AllowShortFunctionsOnASingleLine: false
AllowShortBlocksOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: false
# AlignConsecutiveAssignments: true
# AlignConsecutiveDeclarations: true
# AlignTrailingComments: true
...