From 2f46620979c71c4eede5b5c9b24e5cb5b5f77cfe Mon Sep 17 00:00:00 2001 From: lx-s Date: Wed, 8 Jul 2026 08:03:09 +0200 Subject: [PATCH] Added clang format --- .clang-format | 43 +++++++++++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 12 deletions(-) diff --git a/.clang-format b/.clang-format index 28faeff..78e4129 100644 --- a/.clang-format +++ b/.clang-format @@ -1,13 +1,32 @@ ---- + + BasedOnStyle: Google -AlignAfterOpenBracket: AlwaysBreak -AllowAllConstructorInitializersOnNextLine: 'true' -AllowShortBlocksOnASingleLine: 'false' -AllowShortCaseLabelsOnASingleLine: 'false' -AllowShortFunctionsOnASingleLine: Empty -AllowShortIfStatementsOnASingleLine: Never -AllowShortLoopsOnASingleLine: 'false' -BinPackParameters: 'false' -BreakBeforeBraces: Stroustrup -ColumnLimit: '80' -UseTab: Never \ No newline at end of file +IndentWidth: 4 +--- +Language: Cpp +UseTab: Never +AlignEscapedNewlines: Left +AlignConsecutiveMacros: Consecutive +AllowAllParametersOfDeclarationOnNextLine: true +AllowShortBlocksOnASingleLine: false +AllowShortFunctionsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlwaysBreakBeforeMultilineStrings: true +BinPackParameters: False +# BreakAfterOpenBracketFunction: true +FixNamespaceComments: true +IndentPPDirectives: AfterHash +BreakBeforeBraces: Custom +BraceWrapping: + AfterFunction: true + AfterClass: false + AfterStruct: false + AfterControlStatement: MultiLine + AfterEnum: false + AfterNamespace: false + AfterUnion: false + BeforeElse: false + BeforeCatch: false + IndentBraces: false + -- 2.43.0