2
2
Language : Cpp
3
3
# BasedOnStyle: Google
4
4
AccessModifierOffset : -2
5
- AlignAfterOpenBracket : Align
5
+ AlignAfterOpenBracket : AlwaysBreak
6
+ AlignConsecutiveMacros : false
6
7
AlignConsecutiveAssignments : false
7
8
AlignConsecutiveDeclarations : false
8
9
AlignEscapedNewlines : Left
9
10
AlignOperands : true
10
11
AlignTrailingComments : true
11
- AllowAllParametersOfDeclarationOnNextLine : true
12
- AllowShortBlocksOnASingleLine : false
12
+ AllowAllArgumentsOnNextLine : false
13
+ AllowAllConstructorInitializersOnNextLine : false
14
+ AllowAllParametersOfDeclarationOnNextLine : false
15
+ AllowShortBlocksOnASingleLine : Never
13
16
AllowShortCaseLabelsOnASingleLine : false
14
- AllowShortFunctionsOnASingleLine : Empty
15
- AllowShortIfStatementsOnASingleLine : true
17
+ AllowShortFunctionsOnASingleLine : Inline
18
+ AllowShortLambdasOnASingleLine : All
19
+ AllowShortIfStatementsOnASingleLine : WithoutElse
16
20
AllowShortLoopsOnASingleLine : true
17
21
AlwaysBreakAfterDefinitionReturnType : None
18
22
AlwaysBreakAfterReturnType : None
19
23
AlwaysBreakBeforeMultilineStrings : true
20
- AlwaysBreakTemplateDeclarations : true
21
- BinPackArguments : true
24
+ AlwaysBreakTemplateDeclarations : Yes
25
+ BinPackArguments : false
22
26
BinPackParameters : false
23
27
BraceWrapping :
28
+ AfterCaseLabel : false
24
29
AfterClass : false
25
30
AfterControlStatement : false
26
31
AfterEnum : false
@@ -39,38 +44,46 @@ BraceWrapping:
39
44
BreakBeforeBinaryOperators : None
40
45
BreakBeforeBraces : Attach
41
46
BreakBeforeInheritanceComma : false
47
+ BreakInheritanceList : BeforeColon
42
48
BreakBeforeTernaryOperators : true
43
49
BreakConstructorInitializersBeforeComma : false
44
50
BreakConstructorInitializers : BeforeColon
45
51
BreakAfterJavaFieldAnnotations : false
46
- BreakStringLiterals : false
47
- ColumnLimit : 256
52
+ BreakStringLiterals : true
53
+ ColumnLimit : 180
48
54
CommentPragmas : ' ^ IWYU pragma:'
49
55
CompactNamespaces : false
50
56
ConstructorInitializerAllOnOneLineOrOnePerLine : true
51
- ConstructorInitializerIndentWidth : 4
52
- ContinuationIndentWidth : 4
57
+ ConstructorInitializerIndentWidth : 0
58
+ ContinuationIndentWidth : 2
53
59
Cpp11BracedListStyle : true
54
- DerivePointerAlignment : true
60
+ DeriveLineEnding : true
61
+ DerivePointerAlignment : false
55
62
DisableFormat : false
56
63
ExperimentalAutoDetectBinPacking : false
57
64
FixNamespaceComments : true
58
65
ForEachMacros :
59
66
- foreach
60
67
- Q_FOREACH
61
68
- BOOST_FOREACH
62
- IncludeBlocks : Preserve
69
+ IncludeBlocks : Regroup
63
70
IncludeCategories :
64
71
- Regex : ' ^<ext/.*\.h>'
65
72
Priority : 2
73
+ SortPriority : 0
66
74
- Regex : ' ^<.*\.h>'
67
75
Priority : 1
76
+ SortPriority : 0
68
77
- Regex : ' ^<.*'
69
78
Priority : 2
79
+ SortPriority : 0
70
80
- Regex : ' .*'
71
81
Priority : 3
82
+ SortPriority : 0
72
83
IncludeIsMainRegex : ' ([-_](test|unittest))?$'
84
+ IncludeIsMainSourceRegex : ' '
73
85
IndentCaseLabels : true
86
+ IndentGotoLabels : true
74
87
IndentPPDirectives : None
75
88
IndentWidth : 2
76
89
IndentWrappedFunctionNames : false
@@ -81,33 +94,75 @@ MacroBlockBegin: ''
81
94
MacroBlockEnd : ' '
82
95
MaxEmptyLinesToKeep : 1
83
96
NamespaceIndentation : None
97
+ ObjCBinPackProtocolList : Never
84
98
ObjCBlockIndentWidth : 2
85
99
ObjCSpaceAfterProperty : false
86
- ObjCSpaceBeforeProtocolList : false
100
+ ObjCSpaceBeforeProtocolList : true
87
101
PenaltyBreakAssignment : 2
88
102
PenaltyBreakBeforeFirstCallParameter : 1
89
103
PenaltyBreakComment : 300
90
104
PenaltyBreakFirstLessLess : 120
91
105
PenaltyBreakString : 1000
92
- PenaltyExcessCharacter : 0
106
+ PenaltyBreakTemplateDeclaration : 10
107
+ PenaltyExcessCharacter : 1000000
93
108
PenaltyReturnTypeOnItsOwnLine : 200
94
109
PointerAlignment : Left
110
+ RawStringFormats :
111
+ - Language : Cpp
112
+ Delimiters :
113
+ - cc
114
+ - CC
115
+ - cpp
116
+ - Cpp
117
+ - CPP
118
+ - ' c++'
119
+ - ' C++'
120
+ CanonicalDelimiter : ' '
121
+ BasedOnStyle : google
122
+ - Language : TextProto
123
+ Delimiters :
124
+ - pb
125
+ - PB
126
+ - proto
127
+ - PROTO
128
+ EnclosingFunctions :
129
+ - EqualsProto
130
+ - EquivToProto
131
+ - PARSE_PARTIAL_TEXT_PROTO
132
+ - PARSE_TEST_PROTO
133
+ - PARSE_TEXT_PROTO
134
+ - ParseTextOrDie
135
+ - ParseTextProtoOrDie
136
+ CanonicalDelimiter : ' '
137
+ BasedOnStyle : google
95
138
ReflowComments : true
96
139
SortIncludes : false
97
- SortUsingDeclarations : false
140
+ SortUsingDeclarations : true
98
141
SpaceAfterCStyleCast : false
99
- SpaceAfterTemplateKeyword : false
142
+ SpaceAfterLogicalNot : false
143
+ SpaceAfterTemplateKeyword : true
100
144
SpaceBeforeAssignmentOperators : true
101
- SpaceBeforeParens : Never
145
+ SpaceBeforeCpp11BracedList : false
146
+ SpaceBeforeCtorInitializerColon : true
147
+ SpaceBeforeInheritanceColon : true
148
+ SpaceBeforeParens : ControlStatements
149
+ SpaceBeforeRangeBasedForLoopColon : true
150
+ SpaceInEmptyBlock : false
102
151
SpaceInEmptyParentheses : false
103
152
SpacesBeforeTrailingComments : 2
104
153
SpacesInAngles : false
154
+ SpacesInConditionalStatement : false
105
155
SpacesInContainerLiterals : true
106
156
SpacesInCStyleCastParentheses : false
107
157
SpacesInParentheses : false
108
158
SpacesInSquareBrackets : false
159
+ SpaceBeforeSquareBrackets : false
109
160
Standard : Auto
161
+ StatementMacros :
162
+ - Q_UNUSED
163
+ - QT_REQUIRE_VERSION
110
164
TabWidth : 8
165
+ UseCRLF : false
111
166
UseTab : Never
112
167
...
113
168
0 commit comments