From 2e3f71fcd063908b133a86e8ab66031e59aff019 Mon Sep 17 00:00:00 2001 From: Yury Bayda Date: Wed, 7 May 2025 21:31:09 -0700 Subject: [PATCH] Update settings to new clang-format --- .clang-format | 25 +++++---- .idea/codeStyles/Project.xml | 101 +++++++++++++++++++++++++++++++++-- .idea/editor.xml | 98 ++++++++++++++++++++++++++++++++- 3 files changed, 208 insertions(+), 16 deletions(-) diff --git a/.clang-format b/.clang-format index 3db5891..b47e6dc 100644 --- a/.clang-format +++ b/.clang-format @@ -1,25 +1,28 @@ -# Requires clang version >= 3.8 +# Requires clang-format 14 or newer BasedOnStyle: LLVM -Standard: Cpp11 -# +Standard: c++17 + AccessModifierOffset: -4 -AlignConsecutiveAssignments: true -AlignEscapedNewlinesLeft: true -AlignOperands: true +AlignConsecutiveAssignments: + Enabled: true + AcrossEmptyLines: false + AcrossComments: false +AlignConsecutiveDeclarations: + Enabled: true + AcrossEmptyLines: false + AcrossComments: false +AlignOperands: Align AlignTrailingComments: true -AlignConsecutiveDeclarations: true AllowShortFunctionsOnASingleLine: Inline -AlwaysBreakAfterDefinitionReturnType: TopLevel -AlwaysBreakTemplateDeclarations: false BinPackArguments: false BreakBeforeBraces: Stroustrup ColumnLimit: 100 -ConstructorInitializerAllOnOneLineOrOnePerLine: true Cpp11BracedListStyle: true IndentCaseLabels: false IndentWidth: 4 KeepEmptyLinesAtTheStartOfBlocks: false +PackConstructorInitializers: NextLine PointerAlignment: Left -SortIncludes: false +SortIncludes: Never SpaceAfterCStyleCast: true # vim: ft=yaml diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 35c56fc..9db4553 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -1,10 +1,103 @@ - - - \ No newline at end of file diff --git a/.idea/editor.xml b/.idea/editor.xml index a22fcf6..e54e87a 100644 --- a/.idea/editor.xml +++ b/.idea/editor.xml @@ -1,6 +1,102 @@ - \ No newline at end of file