dev: Rename tools directory to scripts (#5035)

This commit is contained in:
pajlada
2023-12-17 13:37:30 +01:00
committed by GitHub
parent aa11a24163
commit 5dd8c1c88a
10 changed files with 5 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
read -p "Are you sure you want to run clang-format on all source files? (y/n) " -n 1 -r
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 {} \;
find benchmarks/src/ \( -iname "*.hpp" -o -iname "*.cpp" \) -exec clang-format -i {} \;
find mocks/include/ \( -iname "*.hpp" -o -iname "*.cpp" \) -exec clang-format -i {} \;
fi