[script] debugging make format

This commit is contained in:
tangxifan 2022-10-06 17:04:30 -07:00
parent 110b27b3fc
commit d3e374fe57
1 changed files with 4 additions and 1 deletions

View File

@ -70,7 +70,10 @@ all: checkout compile
format-cpp:
# Format all the C/C++ files under this project, excluding submodules
find libs openfpga -iname *.cpp -iname *.hpp -iname *.c -iname *.h | xargs ${CLANG_FORMAT_EXEC} --style=file -i
for f in `find libs openfpga -iname *.cpp -iname *.hpp -iname *.c -iname *.h`; \
do \
${CLANG_FORMAT_EXEC} --style=file -i $${f} || exit 1; \
done
clean:
# Remove current build results