mirror of https://github.com/zeldaret/tp.git
Update clang-format-check.sh and make executable (#156)
* Update clang-format-check.sh and make executable * Make executable Co-authored-by: Isaac <iico7no2@gmail.com>
This commit is contained in:
parent
a2636e84c3
commit
b88cb8cdc0
|
|
@ -4,11 +4,8 @@ clangFormatTargets=$(find . -type f -regex '.*\.\(cpp\|hpp\|h\|cc\|cxx\)')
|
|||
|
||||
for inputFile in $clangFormatTargets
|
||||
do
|
||||
clang-format-10 -style=file $inputFile > $inputFile-formatted
|
||||
diff $inputFile $inputFile-formatted
|
||||
clang-format-10 --dry-run --Werror -style=file $inputFile
|
||||
if [ $? != 0 ] ; then
|
||||
exit 1
|
||||
else
|
||||
rm $inputFile-formatted
|
||||
fi
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in New Issue