set -eu
+./.ci/build.sh build "$@"
+
# Which paths to ignore.
-paths='src/solaris src/mingw'
+paths='src/solaris src/windows src/gcrypt'
case "$(uname -s)" in
Linux)
path_filters=" $path_filters ! ( -path $path -prune ) "
done
-if ! [ -f compile_commands.json ]; then
- # Running compiledb directly on this doesn't work on FreeBSD for some reason.
- make -j2 all extra
- compiledb -n make check
-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='.*' '{}' +