Add clang-format configuration

This commit is contained in:
johnny9 2023-09-06 14:38:43 -04:00
parent 1cbc08c369
commit 6a67bc42f4

19
.clang-format Normal file
View File

@ -0,0 +1,19 @@
BasedOnStyle: LLVM
UseTab: false
IndentWidth: 4
AllowShortIfStatementsOnASingleLine: false
IndentCaseLabels: false
ColumnLimit: 132
DerivePointerAlignment: false
PointerAlignment: Middle
AllowShortFunctionsOnASingleLine: None
BreakBeforeBraces: Custom
BraceWrapping:
AfterEnum: true
AfterStruct: true
AfterFunction: true
AfterNamespace: true
AfterUnion: true
AfterExternBlock: true
SplitEmptyFunction: false
SpaceAfterCStyleCast: true