Skip to content

Commit

Permalink
Update the clang-format config for clang-format 19
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZhihao-723 committed Sep 25, 2024
1 parent 2caa3dc commit ea967a6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lint-configs/.clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@ AllowAllArgumentsOnNextLine: false
AllowAllParametersOfDeclarationOnNextLine: false
AllowBreakBeforeNoexceptSpecifier: "OnlyWithParen"
AllowShortBlocksOnASingleLine: "Always"
AllowShortCaseExpressionOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortCompoundRequirementOnASingleLine: true
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: "Inline"
AllowShortIfStatementsOnASingleLine: "Never"
AllowShortLambdasOnASingleLine: "All"
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterReturnType: "None"
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: "Yes"
BinPackArguments: false
BinPackParameters: false
BitFieldColonSpacing: "Both"
Expand All @@ -52,6 +51,7 @@ BraceWrapping:
SplitEmptyNamespace: false
SplitEmptyRecord: false
BreakAfterAttributes: "Never"
BreakAfterReturnType: "Automatic"
BreakBeforeBinaryOperators: "All"
BreakBeforeBraces: "Custom"
BreakBeforeConceptDeclarations: "Always"
Expand All @@ -60,6 +60,7 @@ BreakBeforeTernaryOperators: true
BreakConstructorInitializers: "BeforeColon"
BreakInheritanceList: "BeforeColon"
BreakStringLiterals: true
BreakTemplateDeclarations: "Yes"
CompactNamespaces: true
ConstructorInitializerIndentWidth: 8
ContinuationIndentWidth: 8
Expand Down Expand Up @@ -87,7 +88,10 @@ IntegerLiteralSeparator:
DecimalMinDigits: 5
Hex: 4
HexMinDigits: 4
KeepEmptyLinesAtTheStartOfBlocks: false
KeepEmptyLines:
AtEndOfFile: true
AtStartOfBlock: false
AtStartOfFile: false
LambdaBodyIndentation: "Signature"
LineEnding: "LF"
MaxEmptyLinesToKeep: 1
Expand Down Expand Up @@ -139,6 +143,7 @@ SpacesInLineCommentPrefix:
Maximum: -1
SpacesInParens: "Custom"
SpacesInParensOptions:
ExceptDoubleParentheses: false
InConditionalStatements: false
InCStyleCasts: false
InEmptyParentheses: false
Expand Down

0 comments on commit ea967a6

Please sign in to comment.