From 25a5e0a8e806b4da2b556ac962db45a16b06876f Mon Sep 17 00:00:00 2001 From: Riyyi Date: Thu, 4 Mar 2021 03:25:44 +0100 Subject: [PATCH] Add .clang-format --- .clang-format | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..5e21330 --- /dev/null +++ b/.clang-format @@ -0,0 +1,35 @@ +# -*- yaml -*- + +--- +BasedOnStyle: WebKit +IndentWidth: 4 +--- +Language: Cpp + +AlignAfterOpenBracket: Align +AlignEscapedNewlines: Left +AlignOperands: Align +AlignTrailingComments: true + +AllowAllArgumentsOnNextLine: false +AllowAllConstructorInitializersOnNextLine: true +AllowAllParametersOfDeclarationOnNextLine: false + +AlwaysBreakTemplateDeclarations: Yes + +BraceWrapping: + AfterEnum: false + AfterFunction: true + BeforeCatch: true + BeforeElse: true + SplitEmptyRecord: false +BreakBeforeBraces: Custom +BreakInheritanceList: BeforeComma + +SpaceAfterTemplateKeyword: false +SpaceInEmptyBlock: false +NamespaceIndentation: None +Standard: c++11 +TabWidth: 4 +UseTab: AlignWithSpaces +...