chore: add .clang-tidy configuration and apply modernize checks (#902)

This commit is contained in:
leejet
2025-10-18 23:23:40 +08:00
committed by GitHub
parent 64a7698347
commit d05e46ca5e
32 changed files with 766 additions and 747 deletions

View File

@@ -1,5 +1,8 @@
for f in *.cpp *.h *.hpp examples/cli/*.cpp examples/cli/*.h; do
[[ "$f" == vocab* ]] && continue
echo "formatting '$f'"
# if [ "$f" != "stable-diffusion.h" ]; then
# clang-tidy -fix -p build_linux/ "$f"
# fi
clang-format -style=file -i "$f"
done