From 29ab58116c00d5f604eb362b94670a87cec7e836 Mon Sep 17 00:00:00 2001 From: Alejandro Cabeza Romero Date: Mon, 16 Feb 2026 16:24:18 +0100 Subject: [PATCH] Add prettify command and add missing setting to clang formatting. --- .clang-format | 2 ++ justfile | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.clang-format b/.clang-format index 2ae4aa3..b2b9dca 100644 --- a/.clang-format +++ b/.clang-format @@ -22,3 +22,5 @@ AllowShortLoopsOnASingleLine: false BreakAfterReturnType: None PenaltyReturnTypeOnItsOwnLine: 1000 + +NamespaceIndentation: All diff --git a/justfile b/justfile index 6bc153f..7b317aa 100644 --- a/justfile +++ b/justfile @@ -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