From 90d180d8395f3816f784bfd1faa1e85983dbb961 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 3 May 2026 14:50:50 +0100 Subject: [PATCH] meta: update clang-format config --- .clang-format | 66 ++++----------------------------------------------- 1 file changed, 4 insertions(+), 62 deletions(-) diff --git a/.clang-format b/.clang-format index 44c8298..a4bc2b5 100644 --- a/.clang-format +++ b/.clang-format @@ -1,64 +1,6 @@ BasedOnStyle: WebKit IndentWidth: 8 --- -Language: C -DerivePointerAlignment: false -PointerAlignment: Right -ColumnLimit: 80 -AlignAfterOpenBracket: AlwaysBreak -AlignConsecutiveAssignments: None -AlignConsecutiveBitFields: None -AlignConsecutiveDeclarations: None -AlignConsecutiveMacros: AcrossEmptyLinesAndComments -AlignEscapedNewlines: Right -AlignOperands: AlignAfterOperator -AlignTrailingComments: true -AllowAllArgumentsOnNextLine: false -AllowAllConstructorInitializersOnNextLine: false -AllowAllParametersOfDeclarationOnNextLine: false -AllowShortBlocksOnASingleLine: Empty -AllowShortCaseLabelsOnASingleLine: false -AllowShortEnumsOnASingleLine: false -AllowShortFunctionsOnASingleLine: false -AllowShortIfStatementsOnASingleLine: false -AllowShortLambdasOnASingleLine: false -AllowShortLoopsOnASingleLine: false -AlwaysBreakAfterReturnType: None -AlwaysBreakBeforeMultilineStrings: true -AlwaysBreakTemplateDeclarations: Yes -BinPackArguments: false -BinPackParameters: OnePerLine -ExperimentalAutoDetectBinPacking: false -BitFieldColonSpacing: Both -BreakBeforeBraces: Linux -BreakBeforeBinaryOperators: All -BreakBeforeTernaryOperators: true -BreakConstructorInitializers: BeforeComma -BreakInheritanceList: BeforeComma -BreakStringLiterals: true -ContinuationIndentWidth: 8 -Cpp11BracedListStyle: true -IncludeBlocks: Regroup -SortIncludes: true -IndentRequires: true -NamespaceIndentation: Inner -ReflowComments: true -SpacesBeforeTrailingComments: 3 -TabWidth: 8 -UseTab: AlignWithSpaces -PenaltyReturnTypeOnItsOwnLine: 1000000 -PenaltyExcessCharacter: 999999999 -PenaltyBreakOpenParenthesis: 5 -PenaltyBreakBeforeFirstCallParameter: 5 -PenaltyIndentedWhitespace: 0 -AttributeMacros: - - FX_API -ForEachMacros: - - fx_btree_foreach - - fx_queue_foreach -MacroBlockBegin: "FX_(TYPE|ASSEMBLY)_.*_BEGIN" -MacroBlockEnd: "FX_(TYPE|ASSEMBLY)_.*_END" ---- Language: ObjC DerivePointerAlignment: false PointerAlignment: Right @@ -85,7 +27,7 @@ AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: true AlwaysBreakTemplateDeclarations: Yes BinPackArguments: false -BinPackParameters: true +BinPackParameters: false ExperimentalAutoDetectBinPacking: false BitFieldColonSpacing: Both BreakBeforeBraces: Linux @@ -143,7 +85,7 @@ AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: true AlwaysBreakTemplateDeclarations: Yes BinPackArguments: false -BinPackParameters: OnePerLine +BinPackParameters: false ExperimentalAutoDetectBinPacking: false BitFieldColonSpacing: Both BreakBeforeBraces: Linux @@ -172,5 +114,5 @@ AttributeMacros: ForEachMacros: - fx_btree_foreach - fx_queue_foreach -MacroBlockBegin: "FX_(TYPE|ASSEMBLY)_.*_BEGIN" -MacroBlockEnd: "FX_(TYPE|ASSEMBLY)_.*_END" +MacroBlockBegin: "FX_(TYPE|ASSEMBLY).*_BEGIN" +MacroBlockEnd: "FX_(TYPE|ASSEMBLY).*_END"