clang-tidy config file .clang-tidy (#6277)

This commit is contained in:
Daniel Agar
2017-01-08 21:55:24 -05:00
committed by GitHub
parent defaf7f5e5
commit b8afc97959
2 changed files with 50 additions and 2 deletions
+4 -2
View File
@@ -41,6 +41,7 @@ case "${tool}" in
;;
"clang-tidy")
command=clang-tidy
option=-header-filter=.*
;;
esac
@@ -49,6 +50,7 @@ awk '{ print $2; }' |
sed 's/\"//g' |
while read FILE; do
(cd $(dirname ${FILE});
${command} ${option} -p ${COMPILE_DB} ${extra_args} $(basename ${FILE})
);
echo ${FILE}
${command} ${option} -p ${COMPILE_DB} ${extra_args} $(basename ${FILE}));
echo
done