File indexing completed on 2025-01-18 09:10:44
0001
0002
0003 RET=0
0004 ERRORS=0
0005
0006 FILES=$(find Core/include/ -name "*.hpp" | grep -v "/detail/")
0007 N_FILES=$(echo "$FILES" | wc -l)
0008 echo "Check $N_FILES files"
0009
0010 ITER=0
0011
0012 for file in $(find Core/include/ -name "*.hpp" | grep -v "/detail/"); do
0013 ITER=$((ITER+1))
0014 echo "$(date +%H:%M:%S) $((100*ITER/N_FILES))% check $file"
0015 out=$(printf "#include <${file:13}>\nint main() { return 0; }" | clang++ -std=c++20 -O0 -c -I "Core/include" -I "/usr/include/eigen3" -x c++ - 2>&1)
0016 if [[ "$?" -ne "0" ]]; then
0017 echo "------------------------------------"
0018 echo "$out"
0019 echo "------------------------------------"
0020 RET=1
0021 ERRORS=$((ERRORS+1))
0022 fi
0023 done
0024
0025 echo "Total errors: $ERRORS"
0026 exit $RET