chore: set up clang-format

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ia4928173791618598031d584f7b6cf166a6a6964
This commit is contained in:
raf 2026-02-22 00:03:39 +03:00
commit 5b80e3aa63
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

18
.clang-format Normal file
View file

@ -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