From 9e0ecc7369340a4ae265c4f3b0249c56b90f7110 Mon Sep 17 00:00:00 2001 From: heinezen Date: Sun, 17 Aug 2025 17:21:13 +0200 Subject: [PATCH] Update clang-format rules to new version. --- .clang-format | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.clang-format b/.clang-format index 4191b164f7..e07d1e83c4 100644 --- a/.clang-format +++ b/.clang-format @@ -12,7 +12,8 @@ AlignConsecutiveDeclarations: false AlignConsecutiveMacros: false AlignEscapedNewlines: DontAlign AlignOperands: Align -AlignTrailingComments: true +AlignTrailingComments: + Kind: Leave AllowAllArgumentsOnNextLine: true AllowAllParametersOfDeclarationOnNextLine: true AllowShortBlocksOnASingleLine: Never @@ -55,6 +56,7 @@ BreakBeforeTernaryOperators: false BreakConstructorInitializers: AfterColon BreakInheritanceList: BeforeComma BreakStringLiterals: false +# clang-format 19 BreakTemplateDeclarations: Yes ColumnLimit: 0 CompactNamespaces: false ConstructorInitializerAllOnOneLineOrOnePerLine: false @@ -84,7 +86,7 @@ IndentGotoLabels: false IndentPPDirectives: BeforeHash IndentWidth: 4 IndentWrappedFunctionNames: false -# clang-format-16 InsertNewlineAtEOF: true +InsertNewlineAtEOF: true InsertTrailingCommas: Wrapped KeepEmptyLinesAtTheStartOfBlocks: false MacroBlockBegin: '' @@ -100,7 +102,7 @@ PenaltyBreakTemplateDeclaration: 10 PenaltyExcessCharacter: 1000000 PenaltyReturnTypeOnItsOwnLine: 200 PointerAlignment: Right -ReflowComments: true +ReflowComments: Always SortIncludes: CaseInsensitive SortUsingDeclarations: true SpaceAfterCStyleCast: false