From 0c66ff89b363e5f81753d6146c999eae15eb7278 Mon Sep 17 00:00:00 2001 From: Attila Body Date: Mon, 26 May 2025 10:11:28 +0200 Subject: [PATCH] Initial commit --- .clang-format | 33 +++++++++++++++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 .clang-format create mode 100644 .gitignore diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..a6724a0 --- /dev/null +++ b/.clang-format @@ -0,0 +1,33 @@ +BasedOnStyle: LLVM +UseTab: Never +IndentWidth: 2 +TabWidth: 2 +BreakBeforeBraces: Custom +AllowShortFunctionsOnASingleLine: InlineOnly +AllowShortIfStatementsOnASingleLine: false +AllowShortLambdasOnASingleLine: true +AllowAllArgumentsOnNextLine: true +IndentCaseLabels: true +AccessModifierOffset: -2 +NamespaceIndentation: All +FixNamespaceComments: false +PackConstructorInitializers: Never +AlignAfterOpenBracket: AlwaysBreak +InsertBraces: true +BraceWrapping: + AfterClass: true # false + AfterControlStatement: false + AfterEnum: true # false + AfterFunction: true # false + AfterNamespace: true # false + AfterObjCDeclaration: true # false + AfterStruct: true # false + AfterUnion: true # false + AfterExternBlock: false + BeforeCatch: false + BeforeElse: false + IndentBraces: false + SplitEmptyFunction: true + SplitEmptyRecord: true + SplitEmptyNamespace: true +ColumnLimit: 140 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2e5015f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/build/ +/.cache/ \ No newline at end of file