From 483950d09dad0c9f845c22112e2ffde81e0af951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C5=93ur?= Date: Fri, 1 Nov 2024 23:47:50 +0100 Subject: [PATCH] Adopting a clang-format based on Google style --- .clang-format | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..c140ec3a --- /dev/null +++ b/.clang-format @@ -0,0 +1,22 @@ +--- +BasedOnStyle: Google + +AccessModifierOffset: -2 +AlignArrayOfStructures: Right +AlignConsecutiveBitFields: AcrossEmptyLines +AlignConsecutiveMacros: AcrossEmptyLines +AlignEscapedNewlines: Right +AlignOperands: DontAlign +AllowShortFunctionsOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: Never +AllowShortLambdasOnASingleLine: Empty +AllowShortLoopsOnASingleLine: false +ColumnLimit: 120 +DerivePointerAlignment: false +IndentCaseLabels: false +IndentPPDirectives: AfterHash +IndentWidth: 4 +InsertNewlineAtEOF: true +PointerAlignment: Right +PPIndentWidth: 2 +SortIncludes: Never