| # Invert match to filter out $1. |
| grep -v "$1" doxygen-log.txt > temp.txt |
| mv temp.txt doxygen-log.txt |
| # Run doxygen and log all output. |
| doxygen 2> original-doxygen-log.txt |
| cp original-doxygen-log.txt doxygen-log.txt |
| cat original-doxygen-log.txt |
| # Filter out some warnings. |
| ignore_warning "warning: no uniquely matching class member found for" |
| ignore_warning "warning:.*\.\./\.\./\.\./build/aten.*" |
| # Count the number of remaining warnings. |
| warnings="$(grep 'warning:' doxygen-log.txt | wc -l)" |
| if [[ "$warnings" -ne "0" ]]; then |
| rm -f doxygen-log.txt original-doxygen-log.txt |
| rm -f doxygen-log.txt original-doxygen-log.txt |