vessel/scripts/tidy-fix.sh
2025-06-14 16:25:52 +03:00

17 lines
315 B
Bash
Executable file

#!/bin/sh
set -eu
main() {
make clean
bear -- make
find web/ core/ \( -name '*.c' -o -name '*.h' \) -type f -print | while read -r file; do
echo "Running clang-tidy fixes on $file"
clang-tidy -p=. -fix-errors "$file" -- || true
done
echo 'clang-tidy fixing complete'
}
main