Unnecessary line from Bionic 18.04 was removed. A proper version guard was included for clang. Xenial currently ships 3.8.
16 lines
212 B
Bash
Executable File
16 lines
212 B
Bash
Executable File
set +e
|
|
clang-tidy-7 --version
|
|
|
|
ERROR=0
|
|
for file in $(find ../src -name "*.cpp"); do
|
|
echo $file
|
|
clang-tidy-7 $file
|
|
|
|
EXIT=$?
|
|
if [[ $EXIT != 0 ]]; then
|
|
ERROR=1
|
|
fi
|
|
done
|
|
set -e
|
|
exit $ERROR
|