X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=.ci%2Ftidy%2Frun.sh;h=36700a2ef199d40ef39bfbc6de3888d21c7f89e8;hb=09dda64ce99668c918fada04b9ad6bf9cd2ab104;hp=bd730d78dcd99b0963c4c7c0a8576b1c2f7f06ac;hpb=a4b5665643d48596b2659dbd69fe8e9b2a944e35;p=tinc diff --git a/.ci/tidy/run.sh b/.ci/tidy/run.sh index bd730d78..36700a2e 100755 --- a/.ci/tidy/run.sh +++ b/.ci/tidy/run.sh @@ -2,6 +2,8 @@ set -eu +./.ci/build.sh "$@" + # Which paths to ignore. paths='src/solaris src/mingw src/gcrypt' @@ -26,10 +28,6 @@ for path in $paths; do 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. @@ -37,4 +35,4 @@ echo >&2 "Running clang-tidy without $paths" find src \ $path_filters \ -name '*.c' \ - -exec clang-tidy --header-filter='.*' '{}' + + -exec clang-tidy -p build --header-filter='.*' '{}' +