2023-03-24 19:46:41 +01:00
|
|
|
#!/bin/bash
|
2023-03-07 18:09:48 +01:00
|
|
|
|
|
|
|
find . -type f \( -name '*.h' -o -name '*.hpp' -o -name '*.hh' -o -name '*.ino' -o -name '*.cpp' -o -name '*.c' -o -name '*.cxx' -o -name '*.inl' \) -and -not -path './build/*' -not -path './base/external/*' -not -path './DPP/*' | while read file; do
|
|
|
|
if [[ "$file" != *"json.hpp" ]]; then
|
|
|
|
echo "Formatting $file..."
|
|
|
|
clang-format -i --style=LLVM $file
|
|
|
|
fi
|
|
|
|
done
|