mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
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:
Regular → Executable
+1
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user