Files
OpenVR-AdvancedSettings-frame/build_scripts/linux/run-clang-tidy.sh
T
Vasily da25e58cbb Add clang-tidy, create Linux build script
clang-tidy is currently set up with errors for all checks that do not
warn. This is to prevent regressing the repo.

Gradually these warnings should be removed in order to prevent further
regresssions in warnings that do not have many occurences.
2019-02-28 21:16:53 +01:00

16 lines
208 B
Bash
Executable File

set +e
clang-tidy --version
ERROR=0
for file in $(find ../src -name "*.cpp"); do
echo $file
clang-tidy $file
EXIT=$?
if [[ $EXIT != 0 ]]; then
ERROR=1
fi
done
set -e
exit $ERROR