From 144075a114d308545aee573d0dbaf93144fe7c52 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 30 May 2020 23:02:58 -0700 Subject: [PATCH] add clang-format file This was generated with whatstyle: whatstyle.py $(find -name "*.h") with some minor fixups. Signed-off-by: Rosen Penev --- .clang-format | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..a5439cd6 --- /dev/null +++ b/.clang-format @@ -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