-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.clang-format
61 lines (47 loc) · 1.41 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
53
54
55
56
57
58
59
60
61
#BasedOnStyle: LLVM
Language: Cpp
Standard: Cpp11
IndentWidth: 4
TabWidth: 4
UseTab: ForIndentation
ColumnLimit: 120
AlignAfterOpenBracket: Align
AlignOperands: false
AlignTrailingComments: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: true
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AccessModifierOffset: -2
AlwaysBreakTemplateDeclarations: true
BreakBeforeBraces: Attach
BreakBeforeTernaryOperators: true
# BreakConstructorInitializers: BeforeComma
ConstructorInitializerAllOnOneLineOrOnePerLine: true
Cpp11BracedListStyle: true
IndentCaseLabels: true
# IndentPPDirectives: AfterHash
IndentWrappedFunctionNames: true
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
PenaltyBreakString: 100
PenaltyBreakAssignment: 100
AllowAllParametersOfDeclarationOnNextLine: false
BinPackParameters: false
AlwaysBreakAfterReturnType: None
PenaltyReturnTypeOnItsOwnLine: 100
BinPackArguments: false
PenaltyBreakBeforeFirstCallParameter: 50
# ReflowComments: true
SortIncludes: true
# SortUsingDeclarations: true
# SpaceAfterTemplateKeyword: true
# SpaceBeforeAssignmentOperators: true
# SpaceBeforeParens = All
# SpaceInEmptyParentheses = false
# SpacesBeforeTrailingComments = 1
BreakBeforeBinaryOperators: NonAssignment
PointerAlignment: Left
DerivePointerAlignment: false
FixNamespaceComments: false