11---
22Language : Cpp
3- # BasedOnStyle: Google
4- AccessModifierOffset : -1
53AlignAfterOpenBracket : Align
6- AlignConsecutiveMacros : false
7- AlignConsecutiveAssignments : false
8- AlignConsecutiveDeclarations : false
9- AlignEscapedNewlines : Left
10- AlignOperands : true
11- AlignTrailingComments : true
4+ AlignArrayOfStructures : Left
5+ AlignConsecutiveAssignments : AcrossComments
6+ AlignConsecutiveBitFields : AcrossComments
7+ AlignConsecutiveDeclarations : AcrossComments
8+ AlignConsecutiveMacros : AcrossComments
9+ # AlignConsecutiveShortCaseStatements: AcrossComments
10+ AlignEscapedNewlines : Left # LeftWithLastLine
11+ AlignOperands : Align
12+ AlignTrailingComments :
13+ Kind : Always
14+ OverEmptyLines : 1
1215AllowAllArgumentsOnNextLine : true
13- AllowAllConstructorInitializersOnNextLine : true
14- AllowAllParametersOfDeclarationOnNextLine : true
16+ AllowAllParametersOfDeclarationOnNextLine : false
17+ # AllowBreakBeforeNoexceptSpecifier: OnlyWithParen
1518AllowShortBlocksOnASingleLine : Never
1619AllowShortCaseLabelsOnASingleLine : false
17- AllowShortFunctionsOnASingleLine : All
18- AllowShortLambdasOnASingleLine : All
19- AllowShortIfStatementsOnASingleLine : WithoutElse
20- AllowShortLoopsOnASingleLine : true
21- AlwaysBreakAfterDefinitionReturnType : None
22- AlwaysBreakAfterReturnType : None
20+ AllowShortFunctionsOnASingleLine : Inline
21+ AllowShortIfStatementsOnASingleLine : Never
22+ AllowShortLambdasOnASingleLine : Inline
23+ AllowShortLoopsOnASingleLine : false
2324AlwaysBreakBeforeMultilineStrings : true
24- AlwaysBreakTemplateDeclarations : Yes
2525BinPackArguments : true
26- BinPackParameters : true
26+ BinPackParameters : true # OnePerLine
27+ BitFieldColonSpacing : Both
28+ BreakBeforeBraces : Custom # Attach
2729BraceWrapping :
28- AfterCaseLabel : false
30+ AfterCaseLabel : true
2931 AfterClass : false
3032 AfterControlStatement : false
3133 AfterEnum : false
@@ -37,40 +39,37 @@ BraceWrapping:
3739 AfterExternBlock : false
3840 BeforeCatch : false
3941 BeforeElse : false
42+ BeforeLambdaBody : false
43+ BeforeWhile : false
4044 IndentBraces : false
41- SplitEmptyFunction : true
42- SplitEmptyRecord : true
43- SplitEmptyNamespace : true
45+ SplitEmptyFunction : false
46+ SplitEmptyRecord : false
47+ SplitEmptyNamespace : false
48+ # BreakAdjacentStringLiterals: true
49+ BreakAfterAttributes : Never
4450BreakBeforeBinaryOperators : None
45- BreakBeforeBraces : Attach
46- BreakBeforeInheritanceComma : false
47- BreakInheritanceList : BeforeColon
48- BreakBeforeTernaryOperators : true
49- BreakConstructorInitializersBeforeComma : false
50- BreakConstructorInitializers : BeforeColon
51- BreakAfterJavaFieldAnnotations : false
51+ BreakBeforeInlineASMColon : OnlyMultiline
52+ BreakBeforeTernaryOperators : false
53+ # BreakBinaryOperations: Never
54+ BreakConstructorInitializers : AfterColon
55+ # BreakFunctionDefinitionParameters: false
56+ BreakInheritanceList : AfterComma
5257BreakStringLiterals : true
53- ColumnLimit : 80
58+ # BreakTemplateDeclarations: Yes
59+ ColumnLimit : 120
5460CommentPragmas : ' ^ IWYU pragma:'
5561CompactNamespaces : false
56- ConstructorInitializerAllOnOneLineOrOnePerLine : true
5762ConstructorInitializerIndentWidth : 4
5863ContinuationIndentWidth : 4
59- Cpp11BracedListStyle : true
60- DeriveLineEnding : true
61- DerivePointerAlignment : true
64+ Cpp11BracedListStyle : false
65+ DerivePointerAlignment : false
6266DisableFormat : false
67+ EmptyLineBeforeAccessModifier : Leave
68+ EmptyLineAfterAccessModifier : Never
6369ExperimentalAutoDetectBinPacking : false
6470FixNamespaceComments : true
65- ForEachMacros :
66- - foreach
67- - Q_FOREACH
68- - BOOST_FOREACH
6971IncludeBlocks : Regroup
7072IncludeCategories :
71- - Regex : ' ^<ext/.*\.h>'
72- Priority : 2
73- SortPriority : 0
7473 - Regex : ' ^<.*\.h>'
7574 Priority : 1
7675 SortPriority : 0
@@ -82,22 +81,31 @@ IncludeCategories:
8281 SortPriority : 0
8382IncludeIsMainRegex : ' ([-_](test|unittest))?$'
8483IncludeIsMainSourceRegex : ' '
84+ IndentAccessModifiers : false
85+ IndentCaseBlocks : true
8586IndentCaseLabels : true
86- IndentGotoLabels : true
87- IndentPPDirectives : None
87+ IndentExternBlock : NoIndent
88+ IndentGotoLabels : false
89+ IndentPPDirectives : AfterHash
8890IndentWidth : 4
8991IndentWrappedFunctionNames : false
92+ InsertBraces : true # NOTE: may lead to incorrect formatting
93+ InsertNewlineAtEOF : true
9094JavaScriptQuotes : Leave
9195JavaScriptWrapImports : true
9296KeepEmptyLinesAtTheStartOfBlocks : false
97+ LambdaBodyIndentation : Signature
98+ LineEnding : LF
9399MacroBlockBegin : ' '
94100MacroBlockEnd : ' '
95101MaxEmptyLinesToKeep : 1
96102NamespaceIndentation : None
97- ObjCBinPackProtocolList : Never
98- ObjCBlockIndentWidth : 2
99- ObjCSpaceAfterProperty : false
103+ ObjCBinPackProtocolList : Auto
104+ ObjCBlockIndentWidth : 4
105+ ObjCSpaceAfterProperty : true
100106ObjCSpaceBeforeProtocolList : true
107+ PPIndentWidth : -1
108+ PackConstructorInitializers : CurrentLine
101109PenaltyBreakAssignment : 2
102110PenaltyBreakBeforeFirstCallParameter : 1
103111PenaltyBreakComment : 300
@@ -106,7 +114,9 @@ PenaltyBreakString: 1000
106114PenaltyBreakTemplateDeclaration : 10
107115PenaltyExcessCharacter : 1000000
108116PenaltyReturnTypeOnItsOwnLine : 200
109- PointerAlignment : Left
117+ PointerAlignment : Middle
118+ QualifierAlignment : Left
119+ # QualifierOrder: ['static', 'inline', 'friend', 'constexpr', 'const', 'volatile', 'type', 'restrict']
110120RawStringFormats :
111121 - Language : Cpp
112122 Delimiters :
@@ -118,27 +128,12 @@ RawStringFormats:
118128 - ' c++'
119129 - ' C++'
120130 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
138- ReflowComments : true
139- SortIncludes : true
140- SortUsingDeclarations : true
141- SpaceAfterCStyleCast : false
131+ ReferenceAlignment : Middle
132+ ReflowComments : false # IndentOnly
133+ SeparateDefinitionBlocks : Always
134+ SortIncludes : CaseInsensitive
135+ SortUsingDeclarations : LexicographicNumeric
136+ SpaceAfterCStyleCast : true
142137SpaceAfterLogicalNot : false
143138SpaceAfterTemplateKeyword : true
144139SpaceBeforeAssignmentOperators : true
@@ -150,19 +145,17 @@ SpaceBeforeRangeBasedForLoopColon: true
150145SpaceInEmptyBlock : false
151146SpaceInEmptyParentheses : false
152147SpacesBeforeTrailingComments : 2
153- SpacesInAngles : false
154- SpacesInConditionalStatement : false
148+ SpacesInAngles : Never
155149SpacesInContainerLiterals : true
156- SpacesInCStyleCastParentheses : false
150+ SpacesInLineCommentPrefix :
151+ Minimum : 1
152+ Maximum : -1
157153SpacesInParentheses : false
158154SpacesInSquareBrackets : false
159155SpaceBeforeSquareBrackets : false
160- Standard : Auto
161- StatementMacros :
162- - Q_UNUSED
163- - QT_REQUIRE_VERSION
164- TabWidth : 8
165- UseCRLF : false
156+ Standard : c++17
157+ TabWidth : 4
166158UseTab : Never
159+ WhitespaceSensitiveMacros : ['STRINGIZE']
167160...
168161
0 commit comments