-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
77 lines (77 loc) · 3.96 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
---
AccessModifierOffset : -4 #The extra indent or outdent of access modifiers, e.g. public:.
AlignAfterOpenBracket : AlwaysBreak
AlignConsecutiveAssignments : false
AlignConsecutiveDeclarations : false
AlignEscapedNewlinesLeft : true
AlignOperands : true
AlignTrailingComments : true
AllowAllParametersOfDeclarationOnNextLine : false
AllowShortBlocksOnASingleLine : false
AllowShortCaseLabelsOnASingleLine : false
AllowShortFunctionsOnASingleLine : Inline
AllowShortIfStatementsOnASingleLine : false
AllowShortLoopsOnASingleLine : false
AlwaysBreakAfterDefinitionReturnType : None
AlwaysBreakAfterReturnType : None
AlwaysBreakBeforeMultilineStrings : true
AlwaysBreakTemplateDeclarations : true
BinPackArguments : false
BinPackParameters : false # If false, parameters either all on the same line or one line each.
BreakBeforeBinaryOperators : None
BreakBeforeBraces : Allman # brace on new line
BreakBeforeTernaryOperators : true
BreakConstructorInitializersBeforeComma : true
ColumnLimit : 100
CommentPragmas : '^ IWYU pragma:'
ConstructorInitializerAllOnOneLineOrOnePerLine : false
ConstructorInitializerIndentWidth : 4
ContinuationIndentWidth : 4
Cpp11BracedListStyle : true
DerivePointerBinding : true
DerivePointerAlignment : false
ExperimentalAutoDetectBinPacking : false
ForEachMacros : [ foreach, Q_FOREACH, BOOST_FOREACH ]
IncludeCategories :
- Regex: '^<bae|bbe|bbl|bce|bde|bdl|bdx|bsi|bsl|bte'
Priority: 2
- Regex: '^<bsl_'
Priority: 3
- Regex: '^<gtest|gmock'
Priority: 5
- Regex: '^<frectyp\.h|ftrndb\.h|parmcm' # legacy crap
Priority: 100
- Regex: '^<bbit/'
Priority: 101
- Regex: '.*'
Priority: 1
IndentCaseLabels : true
IndentFunctionDeclarationAfterType : true
IndentWidth : 4
KeepEmptyLinesAtTheStartOfBlocks : false
Language : Cpp
MaxEmptyLinesToKeep : 1
NamespaceIndentation : None
PenaltyBreakBeforeFirstCallParameter : 0
PenaltyBreakComment : 300
PenaltyBreakFirstLessLess : 120
PenaltyBreakString : 1000
PenaltyExcessCharacter : 10000000
PenaltyReturnTypeOnItsOwnLine : 200
PointerAlignment : Left
PointerBindsToType : true
ReflowComments : true
SortIncludes : true
SpaceAfterControlStatementKeyword : true
SpaceAfterCStyleCast : true
SpaceBeforeAssignmentOperators : true
SpaceBeforeParens : ControlStatements
SpaceInEmptyParentheses : false
SpacesBeforeTrailingComments : 1
SpacesInAngles : false # '< ' style
SpacesInCStyleCastParentheses : false
SpacesInParentheses : false # '(' style
Standard : Cpp03
TabWidth : 4
UseTab : Never
...