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