llvm-capstone/polly/utils/update_format.sh
Tobias Grosser d0fe8371bf cmake: Add target to reformat with clang-format
Calling 'make polly-update-format' will format all Polly files with
clang-format.

llvm-svn: 181293
2013-05-07 07:30:31 +00:00

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