Mentions légales du service

Skip to content
Snippets Groups Projects

Fix load of plugins, add LTO support

Merged Johnny Jazeix requested to merge work/commit_with_includemocs into master
All threads resolved!
Files
57
+ 8
12
@@ -76,18 +76,14 @@ check_clang-format()
then
clang-format --version
filelist=$( git diff --name-only origin/master | grep "\.[ch]pp" )
for file in $filelist
do
clang-format -i {} $file
git diff --exit-code $file > /dev/null
rc=$?
if [ $rc -ne 0 ]
then
echo "Please run: clang-format -i $file"
clang_success=1
fi
done
git diff -U0 --no-color origin/master | clang-format-diff -p1 > format-diff.log
exit_status=$?
[ ${exit_status} == 0 ] || exit ${exit_status}
format_diff="$(<format-diff.log)"
if [ -n "${format_diff}" ]; then
cat format-diff.log
clang_success=1
fi
fi
if [ $clang_success -eq 0 ]
Loading