don't run clang-tidy on header files

This commit is contained in:
Alex Bates 2020-10-13 20:48:24 +01:00
parent 54c969341f
commit 0f59fdb79e
No known key found for this signature in database
GPG Key ID: 5E11C2DB78877706

View File

@ -33,4 +33,7 @@ astyle ${FILES} \
find ${FILES} -exec sed -i -e '$a\' {} \;
# lint
clang-tidy -p . ${FILES} -- ${COMPILER_OPTS}
C_FILES=$(echo "$FILES" | grep '\.c$')
if [[ ! -z $C_FILES ]]; then
clang-tidy -p . ${C_FILES} -- ${COMPILER_OPTS}
fi