2020# along with this program; if not, write to the Free Software
2121# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2222
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,
2424# except for changes mentioned below. We lock the style so that any newer
2525# version of clang-format will give the same result; as time goes, we may
2626# update this list, requiring newer versions of clang-format.
2727
28+ ---
2829Language : Cpp
2930# BasedOnStyle: Google
3031AccessModifierOffset : -1
@@ -43,7 +44,7 @@ AllowShortLoopsOnASingleLine: true
4344AlwaysBreakAfterDefinitionReturnType : None
4445AlwaysBreakAfterReturnType : None
4546AlwaysBreakBeforeMultilineStrings : true
46- AlwaysBreakTemplateDeclarations : true
47+ AlwaysBreakTemplateDeclarations : Yes
4748BinPackArguments : true
4849BinPackParameters : true
4950BraceWrapping :
@@ -55,6 +56,7 @@ BraceWrapping:
5556 AfterObjCDeclaration : false
5657 AfterStruct : false
5758 AfterUnion : false
59+ AfterExternBlock : false
5860 BeforeCatch : false
5961 BeforeElse : false
6062 IndentBraces : false
@@ -64,6 +66,7 @@ BraceWrapping:
6466BreakBeforeBinaryOperators : None
6567BreakBeforeBraces : Attach
6668BreakBeforeInheritanceComma : false
69+ BreakInheritanceList : BeforeColon
6770BreakBeforeTernaryOperators : true
6871BreakConstructorInitializersBeforeComma : false
6972BreakConstructorInitializers : BeforeColon
@@ -83,7 +86,10 @@ ForEachMacros:
8386 - foreach
8487 - Q_FOREACH
8588 - BOOST_FOREACH
89+ IncludeBlocks : Preserve
8690IncludeCategories :
91+ - Regex : ' ^<ext/.*\.h>'
92+ Priority : 2
8793 - Regex : ' ^<.*\.h>'
8894 Priority : 1
8995 - Regex : ' ^<.*'
@@ -92,6 +98,7 @@ IncludeCategories:
9298 Priority : 3
9399IncludeIsMainRegex : ' ([-_](test|unittest))?$'
94100IndentCaseLabels : true
101+ IndentPPDirectives : None
95102IndentWidth : 2
96103IndentWrappedFunctionNames : false
97104JavaScriptQuotes : Leave
@@ -101,30 +108,67 @@ MacroBlockBegin: ''
101108MacroBlockEnd : ' '
102109MaxEmptyLinesToKeep : 1
103110NamespaceIndentation : None
111+ ObjCBinPackProtocolList : Never
104112ObjCBlockIndentWidth : 2
105113ObjCSpaceAfterProperty : false
106- ObjCSpaceBeforeProtocolList : false
114+ ObjCSpaceBeforeProtocolList : true
107115PenaltyBreakAssignment : 2
108116PenaltyBreakBeforeFirstCallParameter : 1
109117PenaltyBreakComment : 300
110118PenaltyBreakFirstLessLess : 120
111119PenaltyBreakString : 1000
120+ PenaltyBreakTemplateDeclaration : 10
112121PenaltyExcessCharacter : 1000000
113122PenaltyReturnTypeOnItsOwnLine : 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
114151ReflowComments : true
115152SortIncludes : true
116153SortUsingDeclarations : true
117154SpaceAfterCStyleCast : false
118155SpaceAfterTemplateKeyword : true
119156SpaceBeforeAssignmentOperators : true
157+ SpaceBeforeCpp11BracedList : false
158+ SpaceBeforeCtorInitializerColon : true
159+ SpaceBeforeInheritanceColon : true
120160SpaceBeforeParens : ControlStatements
161+ SpaceBeforeRangeBasedForLoopColon : true
121162SpaceInEmptyParentheses : false
122163SpacesBeforeTrailingComments : 2
123164SpacesInAngles : false
124165SpacesInContainerLiterals : true
125166SpacesInCStyleCastParentheses : false
126167SpacesInParentheses : false
127168SpacesInSquareBrackets : false
169+ StatementMacros :
170+ - Q_UNUSED
171+ - QT_REQUIRE_VERSION
128172TabWidth : 8
129173UseTab : Never
130174
@@ -133,5 +177,5 @@ UseTab: Never
133177DerivePointerAlignment : false
134178PointerAlignment : Right
135179
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.
137181Standard : Cpp11
0 commit comments