22Language : Cpp
33AccessModifierOffset : -2
44AlignAfterOpenBracket : Align
5- AlignConsecutiveMacros : true
65AlignConsecutiveAssignments : false
76AlignConsecutiveDeclarations : false
7+ AlignConsecutiveMacros : true
88AlignEscapedNewlines : Right
99AlignOperands : Align
10- AlignTrailingComments : true
10+ AlignTrailingComments :
11+ Kind : Always
12+ OverEmptyLines : 0
1113AllowAllArgumentsOnNextLine : false
1214AllowAllConstructorInitializersOnNextLine : true
1315AllowAllParametersOfDeclarationOnNextLine : false
1416AllowShortBlocksOnASingleLine : Never
1517AllowShortCaseLabelsOnASingleLine : false
1618AllowShortFunctionsOnASingleLine : None
17- AllowShortLambdasOnASingleLine : None
1819AllowShortIfStatementsOnASingleLine : Never
20+ AllowShortLambdasOnASingleLine : None
1921AllowShortLoopsOnASingleLine : false
2022AlwaysBreakAfterDefinitionReturnType : None
2123AlwaysBreakAfterReturnType : None
@@ -28,29 +30,30 @@ BraceWrapping:
2830 AfterClass : false
2931 AfterControlStatement : false
3032 AfterEnum : false
33+ AfterExternBlock : false
3134 AfterFunction : false
3235 AfterNamespace : false
3336 AfterObjCDeclaration : false
3437 AfterStruct : false
3538 AfterUnion : false
36- AfterExternBlock : false
3739 BeforeCatch : false
3840 BeforeElse : false
3941 IndentBraces : true
4042 SplitEmptyFunction : true
41- SplitEmptyRecord : true
4243 SplitEmptyNamespace : true
44+ SplitEmptyRecord : true
45+ BreakAfterAttributes : Never
46+ BreakAfterJavaFieldAnnotations : false
4347BreakBeforeBinaryOperators : None
4448BreakBeforeBraces : Attach
4549BreakBeforeInheritanceComma : false
46- BreakInheritanceList : BeforeColon
4750BreakBeforeTernaryOperators : true
48- BreakConstructorInitializersBeforeComma : false
4951BreakConstructorInitializers : BeforeColon
50- BreakAfterJavaFieldAnnotations : false
52+ BreakConstructorInitializersBeforeComma : false
53+ BreakInheritanceList : BeforeColon
5154BreakStringLiterals : true
5255ColumnLimit : 140
53- CommentPragmas : ' ^ IWYU pragma:'
56+ CommentPragmas : " ^ IWYU pragma:"
5457CompactNamespaces : false
5558ConstructorInitializerAllOnOneLineOrOnePerLine : true
5659ConstructorInitializerIndentWidth : 2
@@ -75,24 +78,26 @@ IncludeCategories:
7578 - Regex : ' ^(<|"(gtest|gmock|isl|json)/)'
7679 Priority : 3
7780 SortPriority : 0
78- - Regex : ' .* '
81+ - Regex : " .* "
7982 Priority : 1
8083 SortPriority : 0
81- IncludeIsMainRegex : ' (Test)?$'
82- IncludeIsMainSourceRegex : ' '
84+ IncludeIsMainRegex : " (Test)?$"
85+ IncludeIsMainSourceRegex : " "
8386IndentAccessModifiers : false
8487IndentCaseLabels : true
8588IndentGotoLabels : true
8689IndentPPDirectives : BeforeHash
8790IndentWidth : 2
8891IndentWrappedFunctionNames : false
89- # Requires Clang >= 15, could also cause incorrect code formatting:
90- # InsertBraces: true
92+ # Could lead to incorrect formatting, but I think that the tradeoff is worth it
93+ InsertBraces : true
94+ InsertNewlineAtEOF : true
9195JavaScriptQuotes : Leave
9296JavaScriptWrapImports : true
9397KeepEmptyLinesAtTheStartOfBlocks : true
94- MacroBlockBegin : ' '
95- MacroBlockEnd : ' '
98+ LineEnding : LF
99+ MacroBlockBegin : " "
100+ MacroBlockEnd : " "
96101MaxEmptyLinesToKeep : 1
97102NamespaceIndentation : All
98103PackConstructorInitializers : NextLine
@@ -107,35 +112,34 @@ PenaltyReturnTypeOnItsOwnLine: 60
107112PointerAlignment : Left
108113ReferenceAlignment : Pointer
109114ReflowComments : true
115+ RemoveSemicolon : true
110116SeparateDefinitionBlocks : Always
111117SortIncludes : false
112118SortUsingDeclarations : true
113119SpaceAfterCStyleCast : true
114120SpaceAfterLogicalNot : false
115121SpaceAfterTemplateKeyword : true
122+ SpaceAroundPointerQualifiers : Default
116123SpaceBeforeAssignmentOperators : true
117124SpaceBeforeCaseColon : false
118125SpaceBeforeCpp11BracedList : true
119126SpaceBeforeCtorInitializerColon : true
120127SpaceBeforeInheritanceColon : true
121128SpaceBeforeParens : ControlStatementsExceptForEachMacros
122129SpaceBeforeRangeBasedForLoopColon : true
130+ SpaceBeforeSquareBrackets : false
123131SpaceInEmptyBlock : false
124132SpaceInEmptyParentheses : false
125133SpacesBeforeTrailingComments : 1
126134SpacesInAngles : false
135+ SpacesInCStyleCastParentheses : false
127136SpacesInConditionalStatement : false
128137SpacesInContainerLiterals : false
129- SpacesInCStyleCastParentheses : false
130138SpacesInParentheses : false
131139SpacesInSquareBrackets : false
132- SpaceBeforeSquareBrackets : false
133- SpaceAroundPointerQualifiers : Default
134140Standard : Latest
135141StatementMacros :
136142 - Q_UNUSED
137143 - QT_REQUIRE_VERSION
138144TabWidth : 8
139- UseCRLF : false
140145UseTab : Never
141- ...
0 commit comments