3
3
# This source code is licensed under Apache 2.0 License,
4
4
# attached with Common Clause Condition 1.0, found in the LICENSES directory.
5
5
#
6
- # This is the output of clang-format-7 .0 --style=google --dump-config,
6
+ # This is the output of clang-format-10.0 .0 --style=google --dump-config,
7
7
# except for changes mentioned below.
8
8
# We have locked the version of clang-format in order to avoid inconsistencies
9
9
# in the format caused by developers using different clang-format versions.
10
10
---
11
11
Language : Cpp
12
12
# BasedOnStyle: Google
13
+ AccessModifierOffset : -1
13
14
AlignAfterOpenBracket : Align
15
+ AlignConsecutiveMacros : false
16
+ AlignConsecutiveAssignments : false
14
17
AlignConsecutiveDeclarations : false
18
+ AlignEscapedNewlines : Left
15
19
AlignOperands : true
16
20
AlignTrailingComments : true
17
- AllowShortBlocksOnASingleLine : false
21
+ AllowAllArgumentsOnNextLine : true
22
+ AllowAllConstructorInitializersOnNextLine : true
23
+ AllowAllParametersOfDeclarationOnNextLine : true
24
+ AllowShortBlocksOnASingleLine : Never
18
25
AllowShortCaseLabelsOnASingleLine : false
19
- AllowShortIfStatementsOnASingleLine : true
26
+ AllowShortFunctionsOnASingleLine : All
27
+ AllowShortLambdasOnASingleLine : All
28
+ AllowShortIfStatementsOnASingleLine : WithoutElse
20
29
AllowShortLoopsOnASingleLine : true
21
30
AlwaysBreakAfterDefinitionReturnType : None
22
31
AlwaysBreakAfterReturnType : None
32
+ AlwaysBreakBeforeMultilineStrings : true
23
33
AlwaysBreakTemplateDeclarations : Yes
34
+ BinPackArguments : false
35
+ BinPackParameters : false
24
36
BraceWrapping :
37
+ AfterCaseLabel : false
25
38
AfterClass : false
26
39
AfterControlStatement : false
27
40
AfterEnum : false
@@ -46,12 +59,14 @@ BreakConstructorInitializersBeforeComma: false
46
59
BreakConstructorInitializers : BeforeColon
47
60
BreakAfterJavaFieldAnnotations : false
48
61
BreakStringLiterals : true
62
+ ColumnLimit : 100
49
63
CommentPragmas : ' ^ IWYU pragma:'
50
64
CompactNamespaces : false
51
65
ConstructorInitializerAllOnOneLineOrOnePerLine : true
52
66
ConstructorInitializerIndentWidth : 4
53
67
ContinuationIndentWidth : 4
54
68
Cpp11BracedListStyle : true
69
+ DeriveLineEnding : true
55
70
DerivePointerAlignment : true
56
71
DisableFormat : false
57
72
ExperimentalAutoDetectBinPacking : false
@@ -60,19 +75,26 @@ ForEachMacros:
60
75
- foreach
61
76
- Q_FOREACH
62
77
- BOOST_FOREACH
63
- IncludeBlocks : Preserve
78
+ IncludeBlocks : Regroup
64
79
IncludeCategories :
65
80
- Regex : ' ^<ext/.*\.h>'
66
81
Priority : 2
82
+ SortPriority : 0
67
83
- Regex : ' ^<.*\.h>'
68
84
Priority : 1
85
+ SortPriority : 0
69
86
- Regex : ' ^<.*'
70
87
Priority : 2
88
+ SortPriority : 0
71
89
- Regex : ' .*'
72
90
Priority : 3
91
+ SortPriority : 0
73
92
IncludeIsMainRegex : ' ([-_](test|unittest))?$'
93
+ IncludeIsMainSourceRegex : ' '
74
94
IndentCaseLabels : true
95
+ IndentGotoLabels : false
75
96
IndentPPDirectives : None
97
+ IndentWidth : 2
76
98
IndentWrappedFunctionNames : false
77
99
JavaScriptQuotes : Leave
78
100
JavaScriptWrapImports : true
@@ -82,6 +104,7 @@ MacroBlockEnd: ''
82
104
MaxEmptyLinesToKeep : 1
83
105
NamespaceIndentation : None
84
106
ObjCBinPackProtocolList : Never
107
+ ObjCBlockIndentWidth : 2
85
108
ObjCSpaceAfterProperty : false
86
109
ObjCSpaceBeforeProtocolList : true
87
110
PenaltyBreakAssignment : 2
@@ -125,33 +148,29 @@ ReflowComments: true
125
148
SortIncludes : true
126
149
SortUsingDeclarations : true
127
150
SpaceAfterCStyleCast : false
151
+ SpaceAfterLogicalNot : false
128
152
SpaceAfterTemplateKeyword : true
129
153
SpaceBeforeAssignmentOperators : true
130
154
SpaceBeforeCpp11BracedList : false
131
155
SpaceBeforeCtorInitializerColon : true
132
156
SpaceBeforeInheritanceColon : true
133
157
SpaceBeforeParens : ControlStatements
134
158
SpaceBeforeRangeBasedForLoopColon : true
159
+ SpaceInEmptyBlock : false
135
160
SpaceInEmptyParentheses : false
161
+ SpacesBeforeTrailingComments : 2
136
162
SpacesInAngles : false
163
+ SpacesInConditionalStatement : false
137
164
SpacesInContainerLiterals : true
138
165
SpacesInCStyleCastParentheses : false
139
166
SpacesInParentheses : false
140
167
SpacesInSquareBrackets : false
168
+ SpaceBeforeSquareBrackets : false
169
+ Standard : c++17
170
+ StatementMacros :
171
+ - Q_UNUSED
172
+ - QT_REQUIRE_VERSION
141
173
TabWidth : 8
174
+ UseCRLF : false
142
175
UseTab : Never
143
-
144
- # Different from google style
145
- Standard : Cpp11
146
- AccessModifierOffset : -4
147
- AllowAllParametersOfDeclarationOnNextLine : false
148
- ColumnLimit : 100
149
- ObjCBlockIndentWidth : 4
150
- AlignEscapedNewlines : Right
151
- AlwaysBreakBeforeMultilineStrings : false
152
- BinPackArguments : false
153
- BinPackParameters : false
154
- IndentWidth : 4
155
- SpacesBeforeTrailingComments : 3
156
- AllowShortFunctionsOnASingleLine : Empty
157
176
...
0 commit comments