diff --git a/.clang-format b/.clang-format index c663fefd1d..99b39f193e 100644 --- a/.clang-format +++ b/.clang-format @@ -1,20 +1,20 @@ -Standard: Cpp11 +Standard: c++20 UseTab: ForIndentation -TabWidth: 1 -IndentWidth: 1 -AccessModifierOffset: -1 +TabWidth: 4 +IndentWidth: 4 +AccessModifierOffset: -4 PointerAlignment: Left NamespaceIndentation: All -ColumnLimit: 200 +ColumnLimit: 0 BreakBeforeBraces: Allman -BreakConstructorInitializersBeforeComma: true -BreakBeforeBinaryOperators: false +BreakConstructorInitializers: BeforeColon +BreakBeforeBinaryOperators: None BreakBeforeTernaryOperators: false -AlwaysBreakTemplateDeclarations: true -AllowShortIfStatementsOnASingleLine: false -AllowShortBlocksOnASingleLine: false +AlwaysBreakTemplateDeclarations: Yes +AllowShortIfStatementsOnASingleLine: Never +AllowShortBlocksOnASingleLine: Never AllowShortCaseLabelsOnASingleLine: true -AllowShortFunctionsOnASingleLine: false +AllowShortFunctionsOnASingleLine: Empty AllowShortLoopsOnASingleLine: false Cpp11BracedListStyle: true IndentCaseLabels: false