hanchenye-llvm-project/polly/utils/update_format.sh

12 lines
167 B
Bash
Executable File

#!/bin/bash
if ! which clang-format; then
echo "Error: cannot find clang-format in your path"
exit 1
fi
for ARG in "$@"
do
clang-format -i $ARG
done