Add prettify command and add missing setting to clang formatting.

This commit is contained in:
Alejandro Cabeza Romero 2026-02-16 16:24:18 +01:00
parent 35f9e768c5
commit 29ab58116c
No known key found for this signature in database
GPG Key ID: DA3D14AE478030FD
2 changed files with 5 additions and 0 deletions

View File

@ -22,3 +22,5 @@ AllowShortLoopsOnASingleLine: false
BreakAfterReturnType: None
PenaltyReturnTypeOnItsOwnLine: 1000
NamespaceIndentation: All

View File

@ -17,5 +17,8 @@ rebuild: clean configure build
nix:
nix develop
prettify:
nix shell nixpkgs#clang-tools -c clang-format -i src/**.cpp src/**.h
unicode-logs file:
perl -pe 's/\\u([0-9A-Fa-f]{4})/chr(hex($1))/ge' {{file}} | less -R