From 4a972db089344bc60d65173c2e2f3a0193a719af Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sat, 2 Oct 2021 17:54:20 +0100 Subject: [PATCH] Updated to closely match ETL formatting --- .clang-format | 36 ++++++++++++++++++++++++++++----- test/vs2019/etl.vcxproj | 4 ++++ test/vs2019/etl.vcxproj.filters | 15 ++++++++++++++ 3 files changed, 50 insertions(+), 5 deletions(-) diff --git a/.clang-format b/.clang-format index 8e7ff44e..8a409985 100644 --- a/.clang-format +++ b/.clang-format @@ -1,25 +1,51 @@ --- +#------------------------------------ +# Configuration for clang-format v12 +#------------------------------------ + Language: Cpp -SortIncludes: false +SortIncludes: true BasedOnStyle: Chromium -BreakBeforeBraces: Stroustrup +BinPackParameters: false +BitFieldColonSpacing: Both -AllowShortBlocksOnASingleLine: true +BreakBeforeBraces: Allman +BreakConstructorInitializers: BeforeComma + +AllowShortBlocksOnASingleLine: false AllowShortCaseLabelsOnASingleLine: true -AllowShortFunctionsOnASingleLine: Inline +AllowShortFunctionsOnASingleLine: None AllowShortIfStatementsOnASingleLine: false +AllowAllArgumentsOnNextLine: true +AllowAllParametersOfDeclarationOnNextLine: true + ConstructorInitializerAllOnOneLineOrOnePerLine: 'true' ConstructorInitializerIndentWidth: '2' -ColumnLimit: '150' +NamespaceIndentation: All +IndentPPDirectives: BeforeHash +PointerAlignment: Left +ColumnLimit: '0' ContinuationIndentWidth: '2' +UseTab: Never TabWidth: '2' IndentWidth: '2' AccessModifierOffset : '-2' IndentCaseLabels: false Cpp11BracedListStyle: 'true' +AlignAfterOpenBracket: Align +AlignConsecutiveDeclarations: true + +#------------------------------------ +# Configurations not supported by clang-format v12 +#------------------------------------ +# BreakInheritanceList: AfterComma +# EmptyLineBeforeAccessModifier: Always +# EmptyLineAfterAccessModifier: Always +# ReferenceAlignment: Left + ... diff --git a/test/vs2019/etl.vcxproj b/test/vs2019/etl.vcxproj index 89e16065..7b89a50e 100644 --- a/test/vs2019/etl.vcxproj +++ b/test/vs2019/etl.vcxproj @@ -8366,9 +8366,13 @@ + + + + diff --git a/test/vs2019/etl.vcxproj.filters b/test/vs2019/etl.vcxproj.filters index 120b521b..6140c34a 100644 --- a/test/vs2019/etl.vcxproj.filters +++ b/test/vs2019/etl.vcxproj.filters @@ -121,6 +121,9 @@ {5b76fd56-eb83-489f-b9a6-798c07c5fa76} + + {ffb65df4-d5c7-44ab-a9c7-1150ddce2d6f} + @@ -3106,6 +3109,18 @@ ETL\Arduino\Examples\Vector_Examples\Example_Vector_1_simple_use + + Resource Files + + + Resource Files\Git + + + Resource Files\Git + + + Resource Files\Git +