From 1149d9f92649ce836fde1bb1f20e5163934ab9e3 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 17 Aug 2022 18:19:07 +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 +...