X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=.ci%2Ftidy%2Frun.sh;h=bb975868a93f4bb17c3696f03952c54bc46a00c4;hb=dff94d1df4228386ea9f523b1bfc37590ca31fd8;hp=bd730d78dcd99b0963c4c7c0a8576b1c2f7f06ac;hpb=a4b5665643d48596b2659dbd69fe8e9b2a944e35;p=tinc diff --git a/.ci/tidy/run.sh b/.ci/tidy/run.sh index bd730d78..bb975868 100755 --- a/.ci/tidy/run.sh +++ b/.ci/tidy/run.sh @@ -2,8 +2,10 @@ set -eu +./.ci/build.sh "$@" + # Which paths to ignore. -paths='src/solaris src/mingw src/gcrypt' +paths='src/solaris src/windows src/gcrypt' case "$(uname -s)" in Linux) @@ -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='.*' '{}' +