From 54b81d82e4eb759ae602e75cadcd176d47491d1d Mon Sep 17 00:00:00 2001 From: Falk Werner Date: Fri, 22 Feb 2019 16:45:47 +0100 Subject: [PATCH] added helper to run clang-tidy --- run-clang-tidy.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 run-clang-tidy.sh diff --git a/run-clang-tidy.sh b/run-clang-tidy.sh new file mode 100755 index 0000000..1a1c081 --- /dev/null +++ b/run-clang-tidy.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# +# Helper to run clang-tidy to perform some additional checks. + +FILES=`find lib -name '*.c'` +INCLUDES="-Iinclude -Ilib `pkg-config fuse3 --cflags` `pkg-config libwebsockets --cflags`" + +clang-tidy -header-filter='.*' ${FILES} -- ${INCLUDES}