feat(format): add script for formatting and checking header files

This commit is contained in:
whaffman 2025-09-24 12:55:40 +02:00
parent ba831957d4
commit 94085917ab

2
format.sh Executable file
View File

@ -0,0 +1,2 @@
find webserv -name "*.cpp" -o -name "*.hpp" | xargs clang-format -i
find webserv -name "*.hpp" -exec sh -c 'if ! grep -q "#pragma once" "$1"; then echo "Missing #pragma once in $1"; fi' _ {} \;