From: Kevin Ottens Date: Thu, 6 Aug 2020 06:49:17 +0000 (+0200) Subject: Now make sure we're not picking up generated headers X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~22^2~238^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=65407483e58313319f65196986e9912d84f169f2;p=nextcloud-desktop.git Now make sure we're not picking up generated headers This could happen (and started to happen more with clang-tidy 10) that clang-tidy picked up errors in headers from the build directory. Now that we moved the build directory out of source, we can simply filter headers based on the pwd. Signed-off-by: Kevin Ottens --- diff --git a/.drone.yml b/.drone.yml index d6e5ff3ee..dd56a7436 100644 --- a/.drone.yml +++ b/.drone.yml @@ -52,7 +52,7 @@ steps: chown -R test:test . && su -c 'ASAN_OPTIONS=detect_leaks=0 ctest --output-on-failure' test" # Static analysis with clang-tidy - - "! run-clang-tidy-10 -p /drone/build -quiet | grep -A 5 ': error:'" + - "! run-clang-tidy-10 -p /drone/build -header-filter $PWD -quiet | grep -A 5 ': error:'" volumes: - name: build