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