From e68027b4640829001942eeb86307cd668cbfed3a Mon Sep 17 00:00:00 2001 From: JohnHolmesII Date: Tue, 29 Dec 2020 13:40:16 -0800 Subject: [PATCH] Format: Update clang format Old clang format file was extremely broken, causing issues when viewing code on github, and also featuring stale values. - Fix indentation information - Force wrapping on lambdas --- .clang-format | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) 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