From 008d7259e44afbadf04bcb7f5ae5d16ccf34b2c7 Mon Sep 17 00:00:00 2001 From: theohax <81556890+theohax@users.noreply.github.com> Date: Tue, 19 Oct 2021 14:23:07 +0300 Subject: [PATCH] Formatting rules update -- indentation rules improvements (#3506) * Update clang-format rules * Remove superfluous clang-format rule * Adjust formatting rules: make continuation indentation 0 --- .clang-format | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.clang-format b/.clang-format index 23958ffc7..75531323c 100644 --- a/.clang-format +++ b/.clang-format @@ -1,10 +1,10 @@ --- BasedOnStyle: Webkit -Language: Cpp +Language: Cpp SpaceBeforeParens: Always SpaceAfterTemplateKeyword: true -Standard: Cpp11 -TabWidth: 4 +Standard: Cpp11 +TabWidth: 4 IndentWidth: 4 PointerAlignment: Middle UseTab: ForContinuationAndIndentation @@ -15,9 +15,9 @@ AllowShortCaseLabelsOnASingleLine: false AllowShortFunctionsOnASingleLine: false AllowShortLambdasOnASingleLine: All AllowShortLoopsOnASingleLine: false -BreakConstructorInitializersBeforeComma: true BreakConstructorInitializers: AfterColon ConstructorInitializerAllOnOneLineOrOnePerLine: false +ConstructorInitializerIndentWidth: 4 ContinuationIndentWidth: 0 KeepEmptyLinesAtTheStartOfBlocks: false IndentCaseLabels: true