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