20
20
# along with this program; if not, write to the Free Software
21
21
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22
22
23
- # This is the output of clang-format-5.0 --style=google --dump-config,
23
+ # This is the output of clang-format-8 --style=google --dump-config,
24
24
# except for changes mentioned below. We lock the style so that any newer
25
25
# version of clang-format will give the same result; as time goes, we may
26
26
# update this list, requiring newer versions of clang-format.
27
27
28
+ ---
28
29
Language : Cpp
29
30
# BasedOnStyle: Google
30
31
AccessModifierOffset : -1
@@ -43,7 +44,7 @@ AllowShortLoopsOnASingleLine: true
43
44
AlwaysBreakAfterDefinitionReturnType : None
44
45
AlwaysBreakAfterReturnType : None
45
46
AlwaysBreakBeforeMultilineStrings : true
46
- AlwaysBreakTemplateDeclarations : true
47
+ AlwaysBreakTemplateDeclarations : Yes
47
48
BinPackArguments : true
48
49
BinPackParameters : true
49
50
BraceWrapping :
@@ -55,6 +56,7 @@ BraceWrapping:
55
56
AfterObjCDeclaration : false
56
57
AfterStruct : false
57
58
AfterUnion : false
59
+ AfterExternBlock : false
58
60
BeforeCatch : false
59
61
BeforeElse : false
60
62
IndentBraces : false
@@ -64,6 +66,7 @@ BraceWrapping:
64
66
BreakBeforeBinaryOperators : None
65
67
BreakBeforeBraces : Attach
66
68
BreakBeforeInheritanceComma : false
69
+ BreakInheritanceList : BeforeColon
67
70
BreakBeforeTernaryOperators : true
68
71
BreakConstructorInitializersBeforeComma : false
69
72
BreakConstructorInitializers : BeforeColon
@@ -83,7 +86,10 @@ ForEachMacros:
83
86
- foreach
84
87
- Q_FOREACH
85
88
- BOOST_FOREACH
89
+ IncludeBlocks : Preserve
86
90
IncludeCategories :
91
+ - Regex : ' ^<ext/.*\.h>'
92
+ Priority : 2
87
93
- Regex : ' ^<.*\.h>'
88
94
Priority : 1
89
95
- Regex : ' ^<.*'
@@ -92,6 +98,7 @@ IncludeCategories:
92
98
Priority : 3
93
99
IncludeIsMainRegex : ' ([-_](test|unittest))?$'
94
100
IndentCaseLabels : true
101
+ IndentPPDirectives : None
95
102
IndentWidth : 2
96
103
IndentWrappedFunctionNames : false
97
104
JavaScriptQuotes : Leave
@@ -101,30 +108,67 @@ MacroBlockBegin: ''
101
108
MacroBlockEnd : ' '
102
109
MaxEmptyLinesToKeep : 1
103
110
NamespaceIndentation : None
111
+ ObjCBinPackProtocolList : Never
104
112
ObjCBlockIndentWidth : 2
105
113
ObjCSpaceAfterProperty : false
106
- ObjCSpaceBeforeProtocolList : false
114
+ ObjCSpaceBeforeProtocolList : true
107
115
PenaltyBreakAssignment : 2
108
116
PenaltyBreakBeforeFirstCallParameter : 1
109
117
PenaltyBreakComment : 300
110
118
PenaltyBreakFirstLessLess : 120
111
119
PenaltyBreakString : 1000
120
+ PenaltyBreakTemplateDeclaration : 10
112
121
PenaltyExcessCharacter : 1000000
113
122
PenaltyReturnTypeOnItsOwnLine : 200
123
+ RawStringFormats :
124
+ - Language : Cpp
125
+ Delimiters :
126
+ - cc
127
+ - CC
128
+ - cpp
129
+ - Cpp
130
+ - CPP
131
+ - ' c++'
132
+ - ' C++'
133
+ CanonicalDelimiter : ' '
134
+ BasedOnStyle : google
135
+ - Language : TextProto
136
+ Delimiters :
137
+ - pb
138
+ - PB
139
+ - proto
140
+ - PROTO
141
+ EnclosingFunctions :
142
+ - EqualsProto
143
+ - EquivToProto
144
+ - PARSE_PARTIAL_TEXT_PROTO
145
+ - PARSE_TEST_PROTO
146
+ - PARSE_TEXT_PROTO
147
+ - ParseTextOrDie
148
+ - ParseTextProtoOrDie
149
+ CanonicalDelimiter : ' '
150
+ BasedOnStyle : google
114
151
ReflowComments : true
115
152
SortIncludes : true
116
153
SortUsingDeclarations : true
117
154
SpaceAfterCStyleCast : false
118
155
SpaceAfterTemplateKeyword : true
119
156
SpaceBeforeAssignmentOperators : true
157
+ SpaceBeforeCpp11BracedList : false
158
+ SpaceBeforeCtorInitializerColon : true
159
+ SpaceBeforeInheritanceColon : true
120
160
SpaceBeforeParens : ControlStatements
161
+ SpaceBeforeRangeBasedForLoopColon : true
121
162
SpaceInEmptyParentheses : false
122
163
SpacesBeforeTrailingComments : 2
123
164
SpacesInAngles : false
124
165
SpacesInContainerLiterals : true
125
166
SpacesInCStyleCastParentheses : false
126
167
SpacesInParentheses : false
127
168
SpacesInSquareBrackets : false
169
+ StatementMacros :
170
+ - Q_UNUSED
171
+ - QT_REQUIRE_VERSION
128
172
TabWidth : 8
129
173
UseTab : Never
130
174
@@ -133,5 +177,5 @@ UseTab: Never
133
177
DerivePointerAlignment : false
134
178
PointerAlignment : Right
135
179
136
- # MySQL source code is allowed to use C++11 features.
180
+ # MySQL source code is allowed to use C++11 (and C++14) features.
137
181
Standard : Cpp11
0 commit comments