From ab669c73ddb6e4110151cd3556b3d1ff076dece5 Mon Sep 17 00:00:00 2001 From: ohyzha Date: Tue, 13 Aug 2024 10:54:09 +0300 Subject: [PATCH] change clang format --- .clang-format | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.clang-format b/.clang-format index 4e18f1c..0a4a8f9 100644 --- a/.clang-format +++ b/.clang-format @@ -4,10 +4,10 @@ AccessModifierOffset: "-4" AlignAfterOpenBracket: Align AlignEscapedNewlines: Left AlignOperands: true -AllowShortBlocksOnASingleLine: Always -AllowShortCaseLabelsOnASingleLine: true -AllowShortIfStatementsOnASingleLine: AllIfsAndElse -AllowShortLoopsOnASingleLine: true +AllowShortBlocksOnASingleLine: Empty +AllowShortCaseLabelsOnASingleLine: false +AllowShortIfStatementsOnASingleLine: Never +AllowShortLoopsOnASingleLine: false BreakBeforeBinaryOperators: NonAssignment BreakBeforeBraces: Allman BreakBeforeTernaryOperators: false @@ -23,6 +23,7 @@ IndentCaseLabels: true IndentPPDirectives: BeforeHash IndentWidth: "4" IndentWrappedFunctionNames: true +InsertBraces: true KeepEmptyLinesAtEOF: true KeepEmptyLinesAtTheStartOfBlocks: false MaxEmptyLinesToKeep: "2"