From 5b80e3aa63c68867d85647d8cf4428395ea5b045 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sun, 22 Feb 2026 00:03:39 +0300 Subject: [PATCH] chore: set up clang-format Signed-off-by: NotAShelf Change-Id: Ia4928173791618598031d584f7b6cf166a6a6964 --- .clang-format | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..13d0652 --- /dev/null +++ b/.clang-format @@ -0,0 +1,18 @@ +--- +Language: Cpp +BasedOnStyle: LLVM +IndentWidth: 2 +TabWidth: 2 +UseTab: Never +ColumnLimit: 100 +BreakBeforeBraces: Attach +AllowShortFunctionsOnASingleLine: Inline +AllowShortIfStatementsOnASingleLine: Never +AllowShortLoopsOnASingleLine: false +SpaceAfterCStyleCast: true +SpaceBeforeParens: ControlStatements +AlignConsecutiveAssignments: false +AlignConsecutiveDeclarations: false +NamespaceIndentation: None +PointerAlignment: Left +ReferenceAlignment: Left