Have clang-format-all.sh also reformat test files (#4171)

This commit is contained in:
pajlada 2022-11-20 18:18:38 +01:00 committed by GitHub
parent 01de4d4b5d
commit 8b60d588b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,4 +4,5 @@ read -p "Are you sure you want to run clang-format on all files in src/? (y/n) "
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
find src/ \( -iname "*.hpp" -o -iname "*.cpp" \) -exec clang-format -i {} \;
find tests/src/ \( -iname "*.hpp" -o -iname "*.cpp" \) -exec clang-format -i {} \;
fi