set -eu
+./.ci/build.sh "$@"
+
# Which paths to ignore.
-paths='src/solaris src/mingw'
+paths='src/solaris src/mingw src/gcrypt'
case "$(uname -s)" in
Linux)
path_filters=" $path_filters ! ( -path $path -prune ) "
done
-if ! [ -f compile_commands.json ]; then
- compiledb make all extra
-fi
-
echo >&2 "Running clang-tidy without $paths"
# This is fine, our paths are relative and do not contain any whitespace.
find src \
$path_filters \
-name '*.c' \
- -exec clang-tidy --header-filter='.*' '{}' +
+ -exec clang-tidy -p build --header-filter='.*' '{}' +