From 552e0852826a89a7a6831caf8f8f38017bdbd212 Mon Sep 17 00:00:00 2001 From: Andreas Tsouchlos Date: Sat, 2 Mar 2024 22:59:00 +0100 Subject: [PATCH] Add .clang-format --- .clang-format | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..59dabd2 --- /dev/null +++ b/.clang-format @@ -0,0 +1,26 @@ +BasedOnStyle: LLVM +Language: Cpp + +IndentWidth: 4 +UseTab: Never + +PointerAlignment: Left +AccessModifierOffset: -4 +AlwaysBreakTemplateDeclarations: true + +MaxEmptyLinesToKeep: 2 + +CompactNamespaces: true +FixNamespaceComments: true + +LambdaBodyIndentation: Signature + +AllowShortFunctionsOnASingleLine: false +AllowShortLambdasOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: true + +AlignConsecutiveAssignments: true +AlignConsecutiveBitFields: true +AlignConsecutiveDeclarations: true +AlignConsecutiveMacros: true +