From 085277809d88a8084f7879e76632d53416a6b85a Mon Sep 17 00:00:00 2001 From: Daniel Sieger Date: Sun, 3 Jan 2021 16:03:17 +0100 Subject: [PATCH] Add .clang-format --- .clang-format | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..c427aff --- /dev/null +++ b/.clang-format @@ -0,0 +1,31 @@ +BasedOnStyle: Google +IndentWidth: 4 +ColumnLimit: 80 +AllowShortFunctionsOnASingleLine: Inline +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false +AlignTrailingComments: true +SpacesBeforeTrailingComments: 1 +SortIncludes: false +AccessModifierOffset: -4 +Standard: Cpp11 +KeepEmptyLinesAtTheStartOfBlocks: false +MaxEmptyLinesToKeep: 1 +FixNamespaceComments: true +ReflowComments: false +BreakBeforeBraces: Custom +BraceWrapping: + AfterCaseLabel: true + AfterClass: true + AfterControlStatement: true + AfterEnum: true + AfterFunction: true + AfterNamespace: false + AfterObjCDeclaration: true + AfterStruct: true + AfterUnion: false + BeforeCatch: true + BeforeElse: true + IndentBraces: false