Add .clang-tidy and .clang-format configurations

This commit is contained in:
2023-05-16 09:49:47 +02:00
parent a9759f51fa
commit 093ee73d54
3 changed files with 19 additions and 13 deletions

12
.clang-format Normal file
View File

@@ -0,0 +1,12 @@
---
AccessModifierOffset: '-4'
AllowShortFunctionsOnASingleLine: InlineOnly
AllowShortIfStatementsOnASingleLine: Never
BinPackArguments: 'false'
BinPackParameters: 'false'
BreakBeforeBraces: Allman
ColumnLimit: '100'
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
IndentWidth: '4'
...