awtk/format.sh

12 lines
344 B
Bash
Raw Normal View History

2023-05-09 18:57:48 +08:00
find src tools demos -name \*.c -exec clang-format -i {} \;
find src tools demos -name \*.h -exec clang-format -i {} \;
find src tools demos -name \*.cc -exec clang-format -i {} \;
find src tools demos -name \*.cpp -exec clang-format -i {} \;
for f in tests/*.cpp tests/*.c tests/*.cc
do
echo "clang-format -i $f"
clang-format -i $f
done
2018-02-21 19:36:38 +08:00