From 498c3715476d89c4fafaaab3821954b577f0d0ec Mon Sep 17 00:00:00 2001 From: apio Date: Mon, 23 Dec 2024 23:10:11 +0100 Subject: [PATCH] tools: Show format violations --- tools/check-formatting.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/check-formatting.sh b/tools/check-formatting.sh index 0d55a420..c68287d6 100755 --- a/tools/check-formatting.sh +++ b/tools/check-formatting.sh @@ -10,7 +10,7 @@ ALL_OK=1 for f in ${SOURCES[@]} do - clang-format -n $f 2>&1 | grep -q ^ + clang-format -n $f 2>&1 | tee -a /tmp/clang-format-output | grep -q ^ RESULT=$? if [ "$RESULT" -eq "0" ] then @@ -25,4 +25,7 @@ then exit 0 fi +cat /tmp/clang-format-output +rm /tmp/clang-format-output + exit 1