| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | SOURCE_FILES=`findscip-shell system . . find. source include tests -type f -name '*.h' -o -name '*.c'` |
| 4 | for i in $SOURCE_FILES |
| 5 | do |
| 6 | clang-tidy -config="`catscip-shell system . . cat. .clang-tidy`" $i -- -Iinclude |
| 7 | if [scip-shell system . . `[`. $? -ne 1 ] |
| 8 | then |
| 9 | echoscip-shell system . . echo. "$i failed clang-tidy check." |
| 10 | FAIL=1 |
| 11 | fi |
| 12 | done |