|
@@ -1,16 +1,14 @@
|
|
|
# clang-format configuration
|
|
# clang-format configuration
|
|
|
-# compatible with clang-format 18
|
|
|
|
|
|
|
+# compatible with clang-format 15
|
|
|
|
|
|
|
|
UseTab: Never
|
|
UseTab: Never
|
|
|
-ColumnLimit: 120
|
|
|
|
|
|
|
+ColumnLimit: 100
|
|
|
|
|
|
|
|
# Indent
|
|
# Indent
|
|
|
IndentWidth: 4
|
|
IndentWidth: 4
|
|
|
-BracedInitializerIndentWidth: 4
|
|
|
|
|
AccessModifierOffset: -4
|
|
AccessModifierOffset: -4
|
|
|
IndentAccessModifiers: false
|
|
IndentAccessModifiers: false
|
|
|
IndentCaseLabels: true
|
|
IndentCaseLabels: true
|
|
|
-IndentExternBlock: Indent
|
|
|
|
|
IndentGotoLabels: true
|
|
IndentGotoLabels: true
|
|
|
IndentRequiresClause: true
|
|
IndentRequiresClause: true
|
|
|
IndentWrappedFunctionNames: true
|
|
IndentWrappedFunctionNames: true
|
|
@@ -20,25 +18,18 @@ BitFieldColonSpacing: Both
|
|
|
|
|
|
|
|
# Insert
|
|
# Insert
|
|
|
InsertBraces: false
|
|
InsertBraces: false
|
|
|
-InsertNewlineAtEOF: true
|
|
|
|
|
-KeepEmptyLinesAtEOF: true
|
|
|
|
|
|
|
|
|
|
# Align
|
|
# Align
|
|
|
AlignAfterOpenBracket: true
|
|
AlignAfterOpenBracket: true
|
|
|
-AlignTrailingComments:
|
|
|
|
|
- Kind: Always
|
|
|
|
|
|
|
|
|
|
AlignArrayOfStructures: Left
|
|
AlignArrayOfStructures: Left
|
|
|
PointerAlignment: Left
|
|
PointerAlignment: Left
|
|
|
|
|
|
|
|
-BreakAfterAttributes: Leave
|
|
|
|
|
BreakBeforeBinaryOperators: None
|
|
BreakBeforeBinaryOperators: None
|
|
|
BreakBeforeConceptDeclarations: Always
|
|
BreakBeforeConceptDeclarations: Always
|
|
|
-BreakBeforeInlineASMColon: OnlyMultiline
|
|
|
|
|
BreakBeforeTernaryOperators: true
|
|
BreakBeforeTernaryOperators: true
|
|
|
BreakConstructorInitializers: AfterColon
|
|
BreakConstructorInitializers: AfterColon
|
|
|
BreakInheritanceList: AfterColon
|
|
BreakInheritanceList: AfterColon
|
|
|
-BreakAdjacentStringLiterals: false
|
|
|
|
|
BreakStringLiterals: false
|
|
BreakStringLiterals: false
|
|
|
CompactNamespaces: false
|
|
CompactNamespaces: false
|
|
|
Cpp11BracedListStyle: true
|
|
Cpp11BracedListStyle: true
|
|
@@ -47,10 +38,8 @@ EmptyLineBeforeAccessModifier: Always
|
|
|
|
|
|
|
|
AllowAllArgumentsOnNextLine: false
|
|
AllowAllArgumentsOnNextLine: false
|
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
|
-AllowBreakBeforeNoexceptSpecifier: Never
|
|
|
|
|
AllowShortBlocksOnASingleLine: Always
|
|
AllowShortBlocksOnASingleLine: Always
|
|
|
AllowShortCaseLabelsOnASingleLine: true
|
|
AllowShortCaseLabelsOnASingleLine: true
|
|
|
-AllowShortCompoundRequirementOnASingleLine: true
|
|
|
|
|
AllowShortEnumsOnASingleLine: true
|
|
AllowShortEnumsOnASingleLine: true
|
|
|
AllowShortFunctionsOnASingleLine: All
|
|
AllowShortFunctionsOnASingleLine: All
|
|
|
AllowShortIfStatementsOnASingleLine: WithoutElse
|
|
AllowShortIfStatementsOnASingleLine: WithoutElse
|
|
@@ -83,20 +72,12 @@ SpaceInEmptyBlock: false
|
|
|
SpacesBeforeTrailingComments: 2
|
|
SpacesBeforeTrailingComments: 2
|
|
|
SpacesInAngles: Never
|
|
SpacesInAngles: Never
|
|
|
|
|
|
|
|
-SpacesInParens: Custom
|
|
|
|
|
-SpacesInParensOptions:
|
|
|
|
|
- InConditionalStatements: false
|
|
|
|
|
- InCStyleCasts: false
|
|
|
|
|
- InEmptyParentheses: false
|
|
|
|
|
- Other: false
|
|
|
|
|
-
|
|
|
|
|
SpacesInSquareBrackets: false
|
|
SpacesInSquareBrackets: false
|
|
|
|
|
|
|
|
# Order
|
|
# Order
|
|
|
QualifierAlignment: Custom
|
|
QualifierAlignment: Custom
|
|
|
QualifierOrder: ["constexpr", "const", "inline", "static", "type"]
|
|
QualifierOrder: ["constexpr", "const", "inline", "static", "type"]
|
|
|
SortIncludes: Never
|
|
SortIncludes: Never
|
|
|
-SortUsingDeclarations: LexicographicNumeric
|
|
|
|
|
IncludeBlocks: Merge
|
|
IncludeBlocks: Merge
|
|
|
|
|
|
|
|
WhitespaceSensitiveMacros: ["PK_PROTECTED", "LUA_PROTECTED"]
|
|
WhitespaceSensitiveMacros: ["PK_PROTECTED", "LUA_PROTECTED"]
|