fastnetmon-ng/src/scripts/reformat_code_with_clang_fo...
2020-05-23 19:55:10 +01:00

10 lines
313 B
Bash
Executable File

#/usr/bin/bash
echo "We will reformat all your code"
for file in `find /home/odintsov/repos/fastnetmon_github/src -type f | egrep '\.(c|cpp|hpp|h)$' | egrep -vf /home/odintsov/repos/fastnetmon_github/src/.clang_formatter_excludes`;
do
echo "Reformattting $file";
clang-format -style=file -i $file;
done