blob: ba860664141eecda6a0777f0252ebd83b0f0efc2 (
plain) (
tree)
|
|
#!/bin/bash
export LOGFILE=tidy.log
source ./tools/ci/scripts/init.sh
rm "logs/clang_tidy.txt"
cd src
find . -type f -name "*.cpp" -exec ../tools/ci/scripts/clang_tidy.sh "${FLAGS}" "${DFLAGS}" {} \; >>../logs/clang_tidy.txt
check_error $?
find . -type f -name "*.cc" -exec ../tools/ci/scripts/clang_tidy.sh "${FLAGS}" "-DUNITTESTS -DUNITTESTS_CATCH ${DFLAGS}" {} \; >>../logs/clang_tidy.txt
check_error $?
find . -type f -name "*.h" -exec ../tools/ci/scripts/clang_tidy.sh "${FLAGS}" "${DFLAGS}" {} \; >>../logs/clang_tidy.txt
check_error $?
cd ..
grep "warning:" logs/clang_tidy.txt \
| grep -v "/src/test/doctest.h" \
| grep -v "/src/test/catch.hpp" \
| grep -v "/src/sdl2gfx/" \
| grep -v "/src/debug/" \
>${ERRFILE}
run_check_warnings
echo ok
|