Add prettifier.

This commit is contained in:
Alejandro Cabeza Romero 2026-04-10 17:23:58 +02:00
parent 1ce5a77e44
commit e6ab5509b6
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD
2 changed files with 28 additions and 0 deletions

26
.clang-format Normal file
View File

@ -0,0 +1,26 @@
BasedOnStyle: LLVM
IndentWidth: 4
ColumnLimit: 120
IndentAccessModifiers: false
AccessModifierOffset: -4
AlignAfterOpenBracket: BlockIndent
BinPackParameters: false
BinPackArguments: false
AllowAllParametersOfDeclarationOnNextLine: false
PenaltyBreakBeforeFirstCallParameter: 1
PointerAlignment: Left
ReferenceAlignment: Left
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
BreakAfterReturnType: None
PenaltyReturnTypeOnItsOwnLine: 1000
NamespaceIndentation: All

2
justfile Normal file
View File

@ -0,0 +1,2 @@
prettify:
nix shell nixpkgs#clang-tools -c clang-format -i src/**.cpp src/**.hpp