Add clang format and corresponding ci action
Some checks failed
clang-format Check / Formatting Check (components) (push) Successful in 2m43s
clang-format Check / Formatting Check (main) (push) Failing after 30s

This commit is contained in:
2023-11-25 17:46:16 +01:00
parent da6a2d9d28
commit f91d7b5335
2 changed files with 47 additions and 0 deletions

28
.clang-format Normal file
View File

@@ -0,0 +1,28 @@
BasedOnStyle: LLVM
Language: Cpp
IndentWidth: 4
UseTab: Never
#NamespaceIndentation: All
PointerAlignment: Left
AccessModifierOffset: -4
AlwaysBreakTemplateDeclarations: true
LambdaBodyIndentation: Signature
MaxEmptyLinesToKeep: 3
#ColumnLimit: 128
CompactNamespaces: true
FixNamespaceComments: true
AllowShortFunctionsOnASingleLine: false
AllowShortIfStatementsOnASingleLine: true
AlignConsecutiveAssignments: true
AlignConsecutiveBitFields: true
AlignConsecutiveDeclarations: true
AlignConsecutiveMacros: true
#BraceWrapping:
# BeforeElse: true