mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 06:23:34 +08:00
clang-tidy config file .clang-tidy (#6277)
This commit is contained in:
+4
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user