From 3311376fb99c435262575ebcc91281ea1c292dbe Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Thu, 21 Sep 2023 08:42:08 +0200 Subject: [PATCH] Workspace changed for VSCode --- .clang-format | 27 +++++++++++++ .idea/.gitignore | 5 --- .idea/.name | 1 - .idea/codeStyleSettings.xml | 57 ---------------------------- .idea/codeStyles/Project.xml | 32 ---------------- .idea/codeStyles/codeStyleConfig.xml | 5 --- .idea/encodings.xml | 6 --- 7 files changed, 27 insertions(+), 106 deletions(-) create mode 100644 .clang-format delete mode 100644 .idea/.gitignore delete mode 100644 .idea/.name delete mode 100644 .idea/codeStyleSettings.xml delete mode 100644 .idea/codeStyles/Project.xml delete mode 100644 .idea/codeStyles/codeStyleConfig.xml delete mode 100644 .idea/encodings.xml diff --git a/.clang-format b/.clang-format new file mode 100644 index 000000000..b92919832 --- /dev/null +++ b/.clang-format @@ -0,0 +1,27 @@ +--- +BasedOnStyle: LLVM +IndentWidth: 2 +UseTab: Never + +--- +Language: Cpp +AllowShortBlocksOnASingleLine: false +AllowShortIfStatementsOnASingleLine: false +AllowShortFunctionsOnASingleLine: false +BreakBeforeBraces: Custom +BreakConstructorInitializers: AfterColon +BraceWrapping: + AfterCaseLabel: true + AfterFunction: true + BeforeElse: true + BeforeLambdaBody: false +ColumnLimit: 0 +IncludeCategories: + - Regex: '<[[:alnum:].]+>' + Priority: 0 + - Regex: '.*' + Priority: 1 +IndentCaseLabels: true +# PackConstructorInitializers: Never +PenaltyReturnTypeOnItsOwnLine: 0 +PointerAlignment: Middle diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index f108063c7..000000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -*.iml -misc.xml -modules.xml -vcs.xml -workspace.xml diff --git a/.idea/.name b/.idea/.name deleted file mode 100644 index 7a7d96690..000000000 --- a/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -OpenTX \ No newline at end of file diff --git a/.idea/codeStyleSettings.xml b/.idea/codeStyleSettings.xml deleted file mode 100644 index cc9af5006..000000000 --- a/.idea/codeStyleSettings.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml deleted file mode 100644 index efad3ce27..000000000 --- a/.idea/codeStyles/Project.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml deleted file mode 100644 index 79ee123c2..000000000 --- a/.idea/codeStyles/codeStyleConfig.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml deleted file mode 100644 index 22f558132..000000000 --- a/.idea/encodings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file