X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;ds=sidebyside;f=.ci%2Ftidy%2Frun.sh;h=36700a2ef199d40ef39bfbc6de3888d21c7f89e8;hb=09dda64ce99668c918fada04b9ad6bf9cd2ab104;hp=d196975b4e75d55fa57d4000a8809a05844ea636;hpb=d6866ff0f130704ff963d9e053b1d85407ed2d7c;p=tinc diff --git a/.ci/tidy/run.sh b/.ci/tidy/run.sh index d196975b..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,11 +28,6 @@ for path in $paths; do path_filters=" $path_filters ! ( -path $path -prune ) " done -if ! [ -f compile_commands.json ]; then - make clean - 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. @@ -38,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='.*' '{}' +