Update from upstream #85
@ -12,10 +12,11 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cpp_format="clang-format"
|
cpp_format="clang-format"
|
||||||
|
file_selectors="-iname *.h -o -iname *.cpp -o -iname *.c -o -iname *.tpp"
|
||||||
if command -v ${cpp_format} &> /dev/null; then
|
if command -v ${cpp_format} &> /dev/null; then
|
||||||
find ./src -iname *.h -o -iname *.cpp -o -iname *.c | xargs clang-format --style=file -i
|
find ./src ${file_selectors} | xargs clang-format --style=file -i
|
||||||
find ./hal -iname *.h -o -iname *.cpp -o -iname *.c | xargs clang-format --style=file -i
|
find ./hal ${file_selectors} | xargs clang-format --style=file -i
|
||||||
find ./tests -iname *.h -o -iname *.cpp -o -iname *.c | xargs clang-format --style=file -i
|
find ./tests ${file_selectors} | xargs clang-format --style=file -i
|
||||||
else
|
else
|
||||||
echo "No ${cpp_format} tool found, not formatting C++/C files"
|
echo "No ${cpp_format} tool found, not formatting C++/C files"
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue
Block a user