11---
2- # https://clang.llvm.org/docs/ClangFormatStyleOptions.html
3- # We'll use defaults from the LLVM style, but with 4 columns indentation.
4- BasedOnStyle : LLVM
5- IndentWidth : 4
6- ---
72Language : Cpp
83AccessModifierOffset : 0
94AlignAfterOpenBracket : Align
10- AlignConsecutiveAssignments : false
11- AlignConsecutiveDeclarations : false
5+ AlignArrayOfStructures : None
6+ AlignConsecutiveAssignments :
7+ Enabled : false
8+ AcrossEmptyLines : false
9+ AcrossComments : false
10+ AlignCompound : false
11+ PadOperators : true
12+ AlignConsecutiveBitFields :
13+ Enabled : false
14+ AcrossEmptyLines : false
15+ AcrossComments : false
16+ AlignCompound : false
17+ PadOperators : false
18+ AlignConsecutiveDeclarations :
19+ Enabled : false
20+ AcrossEmptyLines : false
21+ AcrossComments : false
22+ AlignCompound : false
23+ PadOperators : true
24+ AlignConsecutiveMacros :
25+ Enabled : false
26+ AcrossEmptyLines : false
27+ AcrossComments : false
28+ AlignCompound : false
29+ PadOperators : false
1230AlignEscapedNewlines : Left
13- AlignOperands : true
31+ AlignOperands : Align
1432AlignTrailingComments : true
33+ AllowAllArgumentsOnNextLine : true
1534AllowAllParametersOfDeclarationOnNextLine : true
16- AllowShortBlocksOnASingleLine : false
35+ AllowShortEnumsOnASingleLine : true
36+ AllowShortBlocksOnASingleLine : Never
1737AllowShortCaseLabelsOnASingleLine : false
18- AllowShortLambdasOnASingleLine : false
1938AllowShortFunctionsOnASingleLine : Empty
20- AllowShortIfStatementsOnASingleLine : false
39+ AllowShortLambdasOnASingleLine : None
40+ AllowShortIfStatementsOnASingleLine : Never
2141AllowShortLoopsOnASingleLine : true
2242AlwaysBreakAfterDefinitionReturnType : None
2343AlwaysBreakAfterReturnType : None
2444AlwaysBreakBeforeMultilineStrings : true
2545AlwaysBreakTemplateDeclarations : Yes
46+ AttributeMacros :
47+ - __capability
2648BinPackArguments : false
2749BinPackParameters : false
2850BraceWrapping :
51+ AfterCaseLabel : false
2952 AfterClass : false
30- AfterControlStatement : false
53+ AfterControlStatement : Never
3154 AfterEnum : false
3255 AfterFunction : false
3356 AfterNamespace : false
@@ -37,11 +60,14 @@ BraceWrapping:
3760 AfterExternBlock : false
3861 BeforeCatch : false
3962 BeforeElse : false
63+ BeforeLambdaBody : false
64+ BeforeWhile : false
4065 IndentBraces : false
4166 SplitEmptyFunction : true
4267 SplitEmptyRecord : true
4368 SplitEmptyNamespace : true
4469BreakBeforeBinaryOperators : None
70+ BreakBeforeConceptDeclarations : Always
4571BreakBeforeBraces : Attach
4672BreakBeforeInheritanceComma : false
4773BreakInheritanceList : BeforeComma
@@ -52,76 +78,139 @@ BreakAfterJavaFieldAnnotations: false
5278BreakStringLiterals : true
5379ColumnLimit : 120
5480CommentPragmas : ' ^ IWYU pragma:'
81+ QualifierAlignment : Leave
5582CompactNamespaces : true
56- ConstructorInitializerAllOnOneLineOrOnePerLine : true
5783ConstructorInitializerIndentWidth : 4
5884ContinuationIndentWidth : 4
5985Cpp11BracedListStyle : true
86+ DeriveLineEnding : true
6087DerivePointerAlignment : false
6188DisableFormat : false
89+ EmptyLineAfterAccessModifier : Never
90+ EmptyLineBeforeAccessModifier : LogicalBlock
6291ExperimentalAutoDetectBinPacking : false
92+ PackConstructorInitializers : NextLine
93+ BasedOnStyle : ' '
94+ ConstructorInitializerAllOnOneLineOrOnePerLine : false
95+ AllowAllConstructorInitializersOnNextLine : true
6396FixNamespaceComments : true
6497ForEachMacros :
6598 - foreach
6699 - Q_FOREACH
67100 - BOOST_FOREACH
101+ IfMacros :
102+ - KJ_IF_MAYBE
68103IncludeBlocks : Preserve
69104IncludeCategories :
70105 - Regex : ' ^"(llvm|llvm-c|clang|clang-c)/'
71106 Priority : 2
107+ SortPriority : 0
108+ CaseSensitive : false
72109 - Regex : ' ^(<|"(gtest|gmock|isl|json)/)'
73110 Priority : 3
111+ SortPriority : 0
112+ CaseSensitive : false
74113 - Regex : ' .*'
75114 Priority : 1
115+ SortPriority : 0
116+ CaseSensitive : false
76117IncludeIsMainRegex : ' (Test)?$'
118+ IncludeIsMainSourceRegex : ' '
119+ IndentAccessModifiers : false
77120IndentCaseLabels : true
121+ IndentCaseBlocks : false
122+ IndentGotoLabels : true
78123IndentPPDirectives : BeforeHash
124+ IndentExternBlock : AfterExternBlock
125+ IndentRequiresClause : true
79126IndentWidth : 4
80127IndentWrappedFunctionNames : true
128+ InsertBraces : false
129+ InsertTrailingCommas : None
81130JavaScriptQuotes : Leave
82131JavaScriptWrapImports : true
83132KeepEmptyLinesAtTheStartOfBlocks : true
133+ LambdaBodyIndentation : Signature
84134MacroBlockBegin : ' '
85135MacroBlockEnd : ' '
86136MaxEmptyLinesToKeep : 2
87137NamespaceIndentation : None
88138ObjCBinPackProtocolList : Auto
89139ObjCBlockIndentWidth : 2
140+ ObjCBreakBeforeNestedBlockParam : true
90141ObjCSpaceAfterProperty : false
91142ObjCSpaceBeforeProtocolList : true
92143PenaltyBreakAssignment : 2
93144PenaltyBreakBeforeFirstCallParameter : 19
94145PenaltyBreakComment : 300
95146PenaltyBreakFirstLessLess : 120
147+ PenaltyBreakOpenParenthesis : 0
96148PenaltyBreakString : 1000
97149PenaltyBreakTemplateDeclaration : 10
98150PenaltyExcessCharacter : 1000000
99151PenaltyReturnTypeOnItsOwnLine : 60
152+ PenaltyIndentedWhitespace : 0
100153PointerAlignment : Left
154+ PPIndentWidth : -1
155+ ReferenceAlignment : Pointer
101156ReflowComments : true
102- SortIncludes : true
157+ RemoveBracesLLVM : false
158+ RequiresClausePosition : OwnLine
159+ SeparateDefinitionBlocks : Leave
160+ ShortNamespaceLines : 1
161+ SortIncludes : CaseSensitive
162+ SortJavaStaticImport : Before
103163SortUsingDeclarations : false
104164SpaceAfterCStyleCast : true
105- SpaceAfterTemplateKeyword : false
165+ SpaceAfterLogicalNot : false
166+ SpaceAfterTemplateKeyword : true
106167SpaceBeforeAssignmentOperators : true
168+ SpaceBeforeCaseColon : false
107169SpaceBeforeCpp11BracedList : false
108170SpaceBeforeCtorInitializerColon : true
109171SpaceBeforeInheritanceColon : true
110172SpaceBeforeParens : ControlStatements
173+ SpaceBeforeParensOptions :
174+ AfterControlStatements : true
175+ AfterForeachMacros : true
176+ AfterFunctionDefinitionName : false
177+ AfterFunctionDeclarationName : false
178+ AfterIfMacros : true
179+ AfterOverloadedOperator : false
180+ AfterRequiresInClause : false
181+ AfterRequiresInExpression : false
182+ BeforeNonEmptyParentheses : false
183+ SpaceAroundPointerQualifiers : Default
111184SpaceBeforeRangeBasedForLoopColon : true
185+ SpaceInEmptyBlock : false
112186SpaceInEmptyParentheses : false
113187SpacesBeforeTrailingComments : 1
114- SpacesInAngles : false
188+ SpacesInAngles : Never
189+ SpacesInConditionalStatement : false
115190SpacesInContainerLiterals : true
116191SpacesInCStyleCastParentheses : false
192+ SpacesInLineCommentPrefix :
193+ Minimum : 1
194+ Maximum : -1
117195SpacesInParentheses : false
118196SpacesInSquareBrackets : false
119- Standard : Cpp11
197+ SpaceBeforeSquareBrackets : false
198+ BitFieldColonSpacing : Both
199+ Standard : Latest
200+ StatementAttributeLikeMacros :
201+ - Q_EMIT
120202StatementMacros :
121203 - Q_UNUSED
204+ - Q_DEBUG
122205 - QT_REQUIRE_VERSION
123206TabWidth : 4
207+ UseCRLF : false
124208UseTab : Never
209+ WhitespaceSensitiveMacros :
210+ - STRINGIZE
211+ - PP_STRINGIZE
212+ - BOOST_PP_STRINGIZE
213+ - NS_SWIFT_NAME
214+ - CF_SWIFT_NAME
125215...
126216
127-
0 commit comments