#!/bin/bash set -e export CPP_SRC_FILES=$(find ./app -name "*.*" | grep -E "(\.c$|\.cc$|\.cpp$|\.h$|\.hpp$)") echo $CPP_SRC_FILES if [ -n "$CPP_SRC_FILES" ]; then clang-tidy --quiet --checks='*,-llvmlibc-restrict-system-libc-headers' --header-filter=.*/app/.* $CPP_SRC_FILES -- -Iusr/include > clang-tidy.txt; fi;