From b5d6f6e59205d05495a20e0f6a272cd755fc6ec5 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 17 Aug 2022 13:12:54 +0200 Subject: [PATCH] Meta: Add .clang-format config file --- .clang-format | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..3afd345 --- /dev/null +++ b/.clang-format @@ -0,0 +1,39 @@ +# -*- yaml -*- + +--- +BasedOnStyle: WebKit +IndentWidth: 4 +--- +Language: Cpp + +AlignAfterOpenBracket: Align +AlignEscapedNewlines: Left +AlignOperands: Align +AlignTrailingComments: true + +AllowAllArgumentsOnNextLine: false +AllowAllConstructorInitializersOnNextLine: true +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortLambdasOnASingleLine: All + +AlwaysBreakTemplateDeclarations: Yes +IndentPPDirectives: BeforeHash + +BraceWrapping: + AfterEnum: false + AfterFunction: true + BeforeCatch: true + BeforeElse: true + BeforeLambdaBody: false + SplitEmptyRecord: false +BreakBeforeBraces: Custom +BreakInheritanceList: BeforeComma + +SpaceAfterTemplateKeyword: false +SpaceInEmptyBlock: false +NamespaceIndentation: None +FixNamespaceComments: true +Standard: c++20 +TabWidth: 4 +UseTab: AlignWithSpaces +...