Show actual clang-format errors in format-cpp.sh

This commit is contained in:
Mario Zechner 2025-07-16 04:43:22 +02:00
parent aaaa3f8f35
commit 072705560e

View File

@ -99,7 +99,7 @@ for file in "${files[@]}"; do
fi
# Format the file and capture any errors
if ! clang-format -i -style=file:".clang-format" "$file" 2>/dev/null; then
if ! clang-format -i -style=file:".clang-format" "$file" 2>&1; then
printf "\nError formatting: $file\n"
errors=$((errors + 1))
fi