Add clang-format file

This commit is contained in:
Andreas Schneider 2022-08-08 09:49:25 +02:00
parent cf31d3fc68
commit 1677e27265
1 changed files with 25 additions and 0 deletions

25
.clang-format Normal file
View File

@ -0,0 +1,25 @@
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
BasedOnStyle: LLVM
IndentWidth: 4
UseTab: Never
AllowShortIfStatementsOnASingleLine: false
BreakBeforeBraces: Custom
BraceWrapping:
AfterEnum: false
AfterFunction: true
AfterStruct: false
AfterUnion: false
AfterExternBlock: true
BeforeElse: false
BeforeWhile: false
IndentCaseLabels: false
ColumnLimit: 80
AlignAfterOpenBracket: Align
AllowAllParametersOfDeclarationOnNextLine: false
BinPackArguments: false
BinPackParameters: false
AllowAllArgumentsOnNextLine: false
AllowShortFunctionsOnASingleLine: Empty
AlwaysBreakAfterReturnType: None
AlignEscapedNewlines: Left
ForEachMacros: ['ssh_callbacks_iterate']