add clang-format file

This was generated with whatstyle:

whatstyle.py $(find -name "*.h")

with some minor fixups.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-05-30 23:02:58 -07:00 committed by Martijn van Beurden
parent 24629435bb
commit 144075a114
1 changed files with 21 additions and 0 deletions

21
.clang-format Normal file
View File

@ -0,0 +1,21 @@
BasedOnStyle: WebKit
AlignAfterOpenBracket: Align
AlignEscapedNewlines: DontAlign
AlignOperands: true
BraceWrapping:
AfterFunction: true
BeforeElse: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Custom
BreakBeforeInheritanceComma: true
BreakConstructorInitializers: BeforeComma
DerivePointerAlignment: false
IndentCaseLabels: true
MaxEmptyLinesToKeep: 1
NamespaceIndentation: All
PointerAlignment: Right
SortIncludes: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeParens: Never
TabWidth: 4
UseTab: ForContinuationAndIndentation