X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=.ci%2Ftidy%2Frun.sh;h=bb975868a93f4bb17c3696f03952c54bc46a00c4;hb=9c577bd201009f14b4cb5d8540b6dc03246f6165;hp=c5951a20cfe7336a8406fb53561afc54611de709;hpb=c1e1612fae0f18bf3a5538dddf3de385b32b087b;p=tinc diff --git a/.ci/tidy/run.sh b/.ci/tidy/run.sh index c5951a20..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' +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='.*' '{}' +